Internet and Programming are not only for the Genius.
Utilize Internet and Programming for Your Own Benefits. Have fun with it.

 

Tuesday, May 1, 2007

How to Create a Pop-up on Page Exit

Put this between <HEAD> and </HEAD>:

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function leave(){
window.open('yoururl.com','','toolbar=no,menubar=no,location=no,height=500,width=500');
}
// End
-->
</SCRIPT>

Put this in your <BODY> tag:

<body onunload="leave()">

--
Rm 8 : 28; Is 55 : 8-13

No comments: