Placed At :
Hi,
Most of you must have done this...
Plz. can anybody tell me how to detect browser close event in Javascript...
And how to call a servlet on a Brower close...??
I tried out some thing.... but it didnt solved my purpose !
<html>
<head>
<SCRIPT language=Javascript>
<!--
function testfn()
{
alert("Before Submit");
document.myfrm.action="/exam/servlet/PasswordReminderServlet";
document.myfrm.submit();
return true;
}
//-->
</script>
</head>
<body onUnload="testfn()">
<form name="myfrm" method="post">
Hello World
</form>
</body>
</html>
****************************************************
It shows the alert on window close... but my servlet is not called... ??????
Plz can anybody put some light on this....!
regards,
abhishek
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html