Open Popup On-unload

[Total: 0    Average: 0/5]

This example shows how to have a popup window open when the page closes.

Body Code:

<SCRIPT language="JavaScript">
var exit=true;
function out()
{
if (exit)
window.open('http://www.js-x.com/','wnftp',"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=560,height=400");
}
</SCRIPT>




</head>

<body>
<script>onunload=out</script>
No popup if you mouse over this link:<a href="#" onmouseover="exit=false">mmmmmmeeeeee</a>

Times Viewed: 1

Leave a Reply

Your email address will not be published. Required fields are marked *