Hi, I am looking to do a “Are you sure you want to leave the page” message as part of a web-based applciation using onUnload and confirm(). I cannot figure out how to make it such that when the user clicks ‘Cancel’ they does not leave the page.
@AdamGundrySep 15.2003 — #Jona, your code does not work on IE 6 or Mozilla 1.4. AFAIK, there is no reliable way you can do this, as it is a browser security issue. You may be able to put a window.open() call in the onunload handler to reopen the window.
@JonaSep 15.2003 — #[i]Originally posted by AdamGundry [/i]
[B]Jona, your code does not work on IE 6 or Mozilla 1.4. AFAIK, there is no reliable way you can do this, as it is a browser security issue. You may be able to put a window.open() call in the onunload handler to reopen the window.[/B][/QUOTE]
[font=arial][color=maroon]I don't know why I even "answered" the question... I don't particularly enjoy dealing with this sort of thing... I'll remember not to respond to these kinds of posts anymore. :p[/color][/font]
@AdamGundrySep 15.2003 — #If we can get [url=http://www.webdevfaqs.com/]WebDevFaqs[/url] up and running, we should just be able to answer simple questions by posting links. ?
@JonaSep 15.2003 — #[i]Originally posted by AdamGundry [/i]
[B]If we can get [url=http://www.webdevfaqs.com/]WebDevFaqs[/url] up and running, we should just be able to answer simple questions by posting links. ?[/B][/QUOTE]