Click to See Complete Forum and Search --> : Pop ups on unload


PrinBrando
08-07-2003, 04:12 PM
I am trying to get a pop up window to open when someone closes my site. Why is this code not working? The website I got it from says it is html but it looks more like java.
thxs

<body onUnload="window.open('URL You Want To Open','newWindow','scrollbars=1,resizable=1,addressbar=1,location=1,statusbar=1, toolbar=1,taskbar=1,height=250,width=350')">

soccer362001
08-07-2003, 05:41 PM
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title></title>
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="author" content="dan_gabbard@anadarko.com">
<meta name="generator" content="AceHTML 5 Freeware">
<script language="JavaScript">
<!-- Begin
function leave() {
window.open('http://www.yourserver.com/page-to-open.html','','toolbar=no,menubar=no,location=no,height=500,width=500');
}
// End -->
</script>
</head>
<body onUnload="leave()">
</body>
</html>