chiprivers Posted April 16, 2007 Share Posted April 16, 2007 I would like to have my page load to the browser and then wait 30 seconds before executing my javascript command to open a new window. I have tried looking at various javascript snippets to get this to work but all keeps failing, is there a real simple command that will just make the script pause for a given amount of time? Quote Link to comment Share on other sites More sharing options...
nogray Posted April 16, 2007 Share Posted April 16, 2007 There is no pause in JS, but there is a time out function use this in the onload event <body onload="setTimeout('Function_Name()', 30000);" .... This will run the Function_Name() function in 30 seconds. 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.