homepage Welcome to WebmasterWorld Guest from 54.227.41.242
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
Is it possible to pause a script
Pause a Script
stcrim




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

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
-s-

<script>
{myWin = open('', 'winin','top=5,left=35,toolbar=0,menubar=0,scrollbars=1,status=0,resizable=1,width=615,height=565');
self.focus();
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');
self.blur();
myWin.location = 'http://www.example.com/1stc/test_back.html';}
</script>

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

 

httpwebwitch




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

setTimeout() [pageresource.com]

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved