Hi,

This code works fine on Firefox (on refresh, on changing url in address bar
AND on closing browser)

<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Test LogOut</title>
<script type="text/javascript">
function OutPopup(){
    window.open('page2.html', 'My LogOut Popoup');
    // the folowing alert will prove that the function executed
    alert("I am OutPopup");
}
</script>
</head>
<body onunload="javascript: OutPopup()">
lets go out of <a href="#" onclick="javascript: OutPopup()" >here</a>
</body>
</html>

Reply via email to