Re: OnClose handler

An event related to what you suggest is onunload .

Try  this code :

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>On Unload</title>
</head>
<body onunload='javascript:window.alert("Bye bye");'>
</body>
</html>

I tested it with sucess on Firefox and Internet Explorer:
When closing the browser, an alert says "Bye bye".

Unfortunatelly, Opera failed to do this.

Regards

Michael Kyzyma escreveu:
> Why in DOM is not entered a handler of the event of the closing the 
> brouser?
> ------------------------------------------------------
> Best regards
> Michael Kyzyma

Received on Wednesday, 25 April 2007 14:49:33 UTC