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? Link to comment https://forums.phpfreaks.com/topic/47299-pause-script/ 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. Link to comment https://forums.phpfreaks.com/topic/47299-pause-script/#findComment-230736 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.