OnUnLoad

[Total: 0    Average: 0/5]

This shows how to have a new popup window appear as the current page is exited.

Head Code:

<script type=text/javascript>
function newWin() {
window.open();
}
</script>

Body Code:

<body onunload="newWin();">
<!--
The first <body> tag should not be in your file.
It is shown here due to the method in which these
examples are extracted from the JS-Example database
and displayed here.
-->

Times Viewed: 0

Leave a Reply

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