AutoLoad New window

Five seconds after this page has loaded a window will open.
Refresh to see again
This script will allow you have have a new browser window open after a set time.
This can be achieved with the Onload= event, or with a Mouse event

Copy the following code into the <HEAD> section

<script type="text/javascript">
<!--
function startTime(){
window.setTimeout( "loadWin()", 5000)
} 

function loadWin() {
var newWin=open('your page.htm', 'win','width=300,height=100,left=250,top=250') // See Attributes
}
</script>

The time delay is altered by changing the 5000, (this is 5 seconds).

The code above opens a window of a set size and in a set position.
If you do not want to specify any window attributes just change the following line to:

var newWin=open("your page.htm")

If you want the new window opening after a set time, after the current window has opened, then use:

<body onload="startTime()">

If you want to use an Onclick event:

<a href="#null" onclick="startTime();return false">Your Link</a>

When using a Link you do not put your target page in the <a href="#null">, it still goes in the script at line:

var newWin=open("your page.htm")

Example: Click Here and a window will open in 5 seconds

For information on closing windows see Auto Close