[java] close the page and get an alert message

Started by
1 comment, last by capn_midnight 18 years, 3 months ago
Hi, I heard that it is possible for &#106avascript to use the alert function when the page is closing! How do I call this function? I know it has something to do with on body unload and Alert.
Matt : mattb0001@hotmail.comClick me please
Advertisement
This is a Java forum, not &#106avascript; The proper forum to post would be this one.

But yes, you have to call the function - alert() directly or one of your own who does the trick - in one of the events fired when a navigation case occurs, I can't recall exaclty which one, but you can easily find that out on the web.

Son Of Cain
a.k.a javabeats at yahoo.ca
hmmm

<html><body onunload="alert('Holy carp!');"></body></html>

[Formerly "capn_midnight". See some of my projects. Find me on twitter tumblr G+ Github.]

This topic is closed to new replies.

Advertisement