I would like to call parent.window.clearInterval(wpupdate) when the user closes the ‘fancybox’, either by clicking a link inside the frame, or when clicking the area around it.
I would like to call parent.window.clearInterval(wpupdate) when the user closes the ‘fancybox’, either by
Share
As you can find in the documentation ( Callbacks tab ) there are 2 methods for you:
beforeClose
Called right after closing has been triggered but not yet started
Note: If false is returned by the callback, the closing will be halted.
afterClose
Called after closing animation has ended