Hey
I'm looking for a javascript that'll ask users if they really wanna leave when they choose to close the page... its a pretty simple script, but i cant seem to find it ANYWHERE!
but I have seen such a script that has two buttons OK and CANCEL
It informs the user that they are about to close this page. if they click cancel the page won't close but when they click ok it will close.
Can u send me that script plz.
Asim
__________________ Asim Zeeshan, asim333 (at) gmail (dot) com
Edit: That doesnt work, give me a min to update code....
__________________ Drew Gauderman
ASP - MSSQL Coder / Buisness Owner / Coder for Hire!
MSN-ICQ-AIM-YIM in Profile http://www.iportalx.net an easy ASP portal system.
<html>
<head>
<script language="javascript">
function mymessage()
{
alert("This message was triggered from the onunload event");
}
</script>
</head>
<body onunload="mymessage()">
<p>close this window and watch the warning box come up!</p>
</body>
</html>