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?? Quote Link to comment Share on other sites More sharing options...
callesson Posted May 7, 2010 Share Posted May 7, 2010 maybe: function myFunction(){ doSomething(); wait(500); doSomethingElse(); } Quote Link to comment 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> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.