DHTML Modal window v1.1
http://www.dynamicdrive.com/dynamici...dhtmlmodal.htm
Hello everyone! :o
Can you please tell me if I can edit this script for the window to appear on page exit?
I would be grateful for any help.
Printable View
DHTML Modal window v1.1
http://www.dynamicdrive.com/dynamici...dhtmlmodal.htm
Hello everyone! :o
Can you please tell me if I can edit this script for the window to appear on page exit?
I would be grateful for any help.
The only thing that can use the onunload attribute is the alert types(uhh.. I think?).
You cannot get a modal window to show onunload, but you can do something like:
Sorry. :(Code:<body onunload="alert('Bye');">
Thanks for the input. :o
I've seen sites that have drop-in windows on page exit. Does anyone else know how I can trigger that on page exit as opposed to onClick or on page load?
Can you give me an example of a site?
Try to use onbeforeunload event instead.
HERE is an example of a paid script that does it. But I've seen goodbye popups that do the same thing, I just have to think and remember where. Ideally I'd like to use the Dynamic Drive DHTML Modal window one to do the goodbye thing. :o
That script activates when it can't detect your cursor - not when you close the window.
Oh, really?! :p
Both would be nice: when they go to leave the page or when their cursor leaves the screen. I'd like to play sround with both of them. Is it simple to do that kind (when you can't see the cursor)?
P.S. I didn't mean both together, I mean one or the other. Just that I'll play around with both.