onLoad delay

Posted on 1999-07-29
Medium Priority
Last Modified: 2012-06-27
on load, how can i wait for 3mins before opening a new html page on the same browser window? and can i do it continuosly so that every 3 mins. it will auto. load a new page? can some one show me how to do that? thanks.
Question by:osiruz
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 10

Accepted Solution

viktornet earned 80 total points
ID: 1290123
<body OnLoad="setTimeout('location.href='http://www.yahoo.com'', 3000);">

This should do it... if you want multiple pages just create an array and initialize it, then create a function that will change the items and increase the index of a variabke, and change the location to that place... if you need an example please let me know..

LVL 10

Expert Comment

ID: 1290124
actually, what i told you wouldn't work because once you load yahoo, your code will stop working.... I've no idea...
LVL 33

Expert Comment

ID: 1290125
If you want to use frames, you could do it that way by letting the parent rotate the page in the frame ...

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.


Author Comment

ID: 1290126
what if i have all the html files on local drive?
at least i could rotate a.html and b.html to and fro rite?
a will load b...and b will load a.and it will continue as a loop.how do i code it? with the interval of 3mins.
LVL 10

Expert Comment

ID: 1290127
if you have frames, even if one of them is 0 or 1 pixels in width with no scroll bars you can rotate all the htmls through the second frame, which is actually the main, and still stay in control...

If you need an example please let me know!


Author Comment

ID: 1290128
ok,an example will be great. thanks alot.

Expert Comment

ID: 6872288

This question was awarded, but never cleared due to the JSP-500 errors of that time.  It was "stuck" against userID -1 versus the intended expert whom you awarded.  This corrects the problem and the expert will now receive these points; points verified.

Please click on your Member Profile and select "View Question History" to navigate through any open or locked questions you may have to update and finalize them.  If you are an EE Pro user, you can also choose Power Search to find all your open questions.

This is the Community Support link, if help is needed, along with the link to All Topics which reflects many TAs recently added.

Thank you,
Moderator @ Experts Exchange

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question