Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Is it possible to pause a script

Pause a Script



8:12 pm on Dec 6, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

Is it possible to cause a script to pause for a second or two and then resume?

Though not the best example, let's say you had two pop ups and you wanted one to pop and the other to wait a couple of seconds (see code below)...

...is there a way to do it?

Many Thanks

{myWin = open('', 'winin','top=5,left=35,toolbar=0,menubar=0,scrollbars=1,status=0,resizable=1,width=615,height=565');
myWin.location = 'http://www.example.com/1stc/test_front.html';}

// Is it possible to pause here perhaps using pausecomp(3000) or a timeout function?

{myWin = open('', 'winin2','top=5,left=35,toolbar=0,menubar=0,scrollbars=1,status=0,resizable=1,width=615,height=565');
myWin.location = 'http://www.example.com/1stc/test_back.html';}

[edited by: jatar_k at 3:55 am (utc) on Dec. 7, 2005]
[edit reason] examplified [/edit]


1:48 am on Dec 9, 2005 (gmt 0)

WebmasterWorld Administrator httpwebwitch is a WebmasterWorld Top Contributor of All Time 10+ Year Member

setTimeout() [pageresource.com]

Featured Threads

Hot Threads This Week

Hot Threads This Month