by leonard on Mon Jan 07, 2008 2:01 pm
I don't think this can be done with plain HTML/JavaScript, not even using cookies.
The problem is the refresh-button triggers the onunload function. Using cookies you could trigger the refresh-button and not trigger the full-exit (but not the other way round).
I think this would have to be done with external browser components (applet/flash?), but anyway a popup onunload is a very nasty thing, because normally a user wants to fully exit a page when he closes the window. This code is somehow an equivilant to spam-mails and not that of a user-friendly site.
Anyway, popups are blocked in the most browsers (which is good). There is therefore no way to guarantee the popup will really be displayed.
If you find a way to do this, please paste it here, I would be interested (even if I don't agree with the use of popups on window-close).
cheers!
- leonard
:%s/^M//
There are 10 kinds of people:
Those who understand binary and those who don't.