When a user wants to exit the entire site from clicking the browser, (the 'X' CLOSE window)
how do I set a confirmation box to pop up to confirm navigation away from the page, and maybe offer 2 options "Close the window" or "Stay on this Page". If a user opts to stay on the page, I'd then want to link to an invisible page on the same site.
I've seen this on several sites and it's not specific to any browser apparently it's in the code for the sites.
Thanks mucho guys!
Google window.onbeforeunload and window.onunload, oceans of examples. It's not guaranteed to work, Opera in particular disables it completely I think.
Great wit and madness are near allied, and fine a line their bounds divide.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread