Click to See Complete Forum and Search --> : page loading


mgrenier
02-25-2005, 10:31 AM
Is there anyway that after I submit a certain page, I can load another one and in X number of seconds I can automatically load a new page without user input?

Thank you for you help,
Matt

phpnovice
02-25-2005, 10:33 AM
There is the META refresh for that purpose -- in other words, the refresh can be for a different page. Otherwise, this will require JavaScript.

mgrenier
02-25-2005, 10:40 AM
ok, so inorder to get the meta tag to load a different page what must I do?

could you give an example pls.

also there is javascript in my page, if you happen to know of the top of you head how to do it in js could you post that aswell.

Thanks for you time,
Matt

mgrenier
02-25-2005, 10:41 AM
nevermind i got i, thanks anyways

phpnovice
02-25-2005, 10:47 AM
For ten-second automatic navigation:

<META HTTP-EQUIV="REFRESH" CONTENT="10;url=somepage.htm">

or, in JavaScript:

window.setTimeout("top.location.href='somepage.htm'",10000);

mgrenier
02-25-2005, 11:07 AM
thanks a lot, you've been a great help

phpnovice
02-25-2005, 11:10 AM
Cheers.