yes, just replace the line:
<body onUnloadJavaScript:unloadPage()>
with
<body onUnload=JavaScript:unloadPage()>
and try it again.
yoni
-----Original Message-----
i tried this charles but nothingis happening when i planning to switch over
to a new page no alert messages nothing i tried i both the browsers. Am i
missing something obvious??
-----Original Message-----
From: Charles Chen [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 25, 2000 5:20 PM
To: [EMAIL PROTECTED]
Subject: Re: [Scanned by Yellow Pages PostMaster]
Contact: Tel: 2726 - New Media Systems, 1st Floor South, Queens Walk
Try to view this page in your browser and then chaneg to another page within
the
browser.
<html>
<head>
<script language=javascript>
function unloadPage()
{
alert("Page is abuot to be unloaded!");
}
</script>
</head>
<body onUnloadJavaScript:unloadPage()>
</body>
</html>
Cheers,
Charles
___________________________________________________________________________
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