Back to Index

Auto Page Close

 

 

This little script can be placed in a pop-up window to automatically close in 30 seconds when the pop-up is ignored.  There is nothing to really configure except for the time variable. The higher the time variable the longer the window stay open and vice-versa.

 

Place script between the <HEAD></HEAD> tags.

<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">

function closeWindow(){

setTimeout("window.close(self)",30*1000)
}
</SCRIPT>
 

Script to be placed in <BODY> tag.

onload="closeWindow()"

Place script between the <HEAD></HEAD> tags.

Script to be placed in <BODY> tag.


Copyright 2003 Ultimatephp.com