PDA

View Full Version : redirecting a page



Humper
09-12-2006, 03:31 PM
I am trying to redirect a page after about 30 seconds but it hit the page and only stays for 1 sec... what am I doing wrong?

here is the code

<script type="text/javascript">
window.onload=WindowLoad;
function WindowLoad(event)
{
setTimeout("location = 'EquipReport.php';", 30);
}
</script>

how can I change it?

jscheuer1
09-12-2006, 03:45 PM
<script type="text/javascript">
window.onload=WindowLoad;
function WindowLoad(event)
{
setTimeout("location = 'EquipReport.php';", 30000);
}
</script>

setTimeout uses milliseconds, not seconds.

Humper
09-12-2006, 03:50 PM
ahh.. lol.. no wonder ...... Thanks