robert_gsfame Posted May 7, 2010 Share Posted May 7, 2010 Is it possible to pause for several seconds before running the script window.location.href?? Link to comment https://forums.phpfreaks.com/topic/200985-windowlocationhref/ Share on other sites More sharing options...
callesson Posted May 7, 2010 Share Posted May 7, 2010 maybe: function myFunction(){ doSomething(); wait(500); doSomethingElse(); } Link to comment https://forums.phpfreaks.com/topic/200985-windowlocationhref/#findComment-1054489 Share on other sites More sharing options...
phpchamps Posted May 7, 2010 Share Posted May 7, 2010 Yes it is.. use setTimeout <script language="JavaScript1.2" type="text/javascript"> setTimeout("window.location = 'http://www.google.com'", '5000'); </script> Link to comment https://forums.phpfreaks.com/topic/200985-windowlocationhref/#findComment-1054516 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.