Quick PopUp on Unload or Exit in JavaScript
June 17th, 2008 | by valiik |Popup on unload. Quick reference from JavaScript-Coder.com
<html>
<head>
<title>JavaScript Popup OnUnload</title>
</head>
<SCRIPT language=”JavaScript1.2″>
function exitpop() {
my_window = window.open
(http://www.domain.com, “mywindow1″, “status=1, width=350, height=150″);
my_window.document.write(’<H1>Popup Test!</H1>’);
}
</SCRIPT>
<body onunload=”javascript: exitpop()“>
<H1>JavaScript Popup Example 4</H1>
</body>
</html>





