View Full Version : changing location after delay

03-20-2009, 04:38 PM

im trying to do what i assimed was simple, but a lack of touching coding for months is showing

basically, i want to have a page load, and then about 15 seconds later, i want another page to load.

i thought the best way to do this would be to have 2 frames, one with the page that i want to load instantly, and then one with the page that i want to load in 15 seconds, and then write some code to wait 15 seconds, and then change the src of the second frame.
as with anything coding related, im sure there will be 100s of ways of doing this, im simply looking for the easiest


<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>

<frameset cols="50%,50%">
<frame name="frame1" src="http://www.facebook.com">
<frame name="frame2" id="rFrame" src="">
<script type="text/javascript">


the above is what i got, i used the setTimeout function, but it didnt work, so i tried to remove it and it still didnt work.

can anyone hepl?
all i need is a page1 to load, then 15 seconds later, page2 to load.

thanks a lot