Q. How do you make a new automatically launched window that goes to a URL if the user exits from the site?
A. You can achieve this effect by using the onUnload event, although we encourage you to use this script sparingly.
<SCRIPT LANGUAGE =
"JavaScript">
<!-- //
function openit(sURL){newwindow=open(sURL,"newwin","width=300,
height=300");
}
//-->
</script>
</head>
<body onUnload="javascript:openit ('smallwin.html')">
body text goes here
</body>
You can also change the height and width settings, or add or remove other
windows settings by adding the following functions:
function openit(sURL){newwindow=open(sURL,"newwin","scrollbars=no,toolbar=no,directories=no,menubar=no,resizabe=no,status=no,width=300,height=300");
}