Click to See Complete Forum and Search --> : Pop-up window (button close)


bibitivi
01-03-2004, 09:00 PM
How can I desactivate the button to close a pop-up window (button at the top right corner)?

pyro
01-03-2004, 09:02 PM
Thankfully, you cannot.

fredmv
01-03-2004, 09:18 PM
Originally posted by bibitivi
How can I desactivate the button to close a pop-up window (button at the top right corner)? Why?

bibitivi
01-04-2004, 06:45 AM
Originally posted by fredmv
Why?

Because I want that people click on a link "exit" which calls a JavaScript function where infos are stored in a database and then, the window is closed.

fredmv
01-04-2004, 10:24 AM
I always ask "why" to questions like this because there is usually an alternative way it can be done, and that's just the case here once again. Use the onunload event handler so the function will be called however you close the window.<body onunload="foo();bar();">

bibitivi
01-04-2004, 01:42 PM
It is what we did but that does not function for certain users. The event "unload" does not work.

fredmv
01-04-2004, 01:45 PM
Originally posted by bibitivi
The event "unload" does not work. If you used unload, that's why. It's onunload.

bibitivi
01-04-2004, 01:52 PM
Sorry!

I wanted to say the event ' onunload'...