|
|
Q509 How can I load a popup window when a user leaves my site, even if the user types in a url, selects a bookmark, clicks on the back button, or selects a url from the history?
irt.org | Knowledge Base | JavaScript | Window | Q509 [ previous next ] Q509 How can I load a popup window when a user leaves my site, even if the user types in a url, selects a bookmark, clicks on the back button, or selects a url from the history?This question was asked and eventually answered by Pierre Adriaans: I actually figured out how to do it. Use a frameset, make your whole site sit in the one and only frame defined from the index.html, and use the onUnload() handler on the frameset, not the frame. This way, it wont get triggered when you go forward (going forward takes place in the frame, withing the same frameset), but will get triggered if:
Feedback on 'Q509 How can I load a popup window when a user leaves my site, even if the user types in a url, selects a bookmark, clicks on the back button, or selects a url from the history?' |
-- div -->
|