Ummm, ummm!!!....

If you're talking about a browser window  there is no way to detect browser
close event, because there is no close event.
If you are managing a new window, opened from a browser window, you can
check the property "isclosed" but it is not an event....

Am I Right??

-----Mensaje original-----
De: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]En nombre de
Abhishek Vishwakarma
Enviado el: miercoles, 08 de agosto de 2001 14:48
Para: [EMAIL PROTECTED]
Asunto: Browser Close !!


                                              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

___________________________________________________________________________
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

Reply via email to