?
Solved

How do I force a refresh onload an HTML page ???

Posted on 2007-03-23
5
Medium Priority
?
1,247 Views
Last Modified: 2007-12-19
I need to refresh the content of my page onload, how can I force it ?
Thanks in advance,
0
Comment
Question by:Mylor
[X]
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
  • 3
5 Comments
 
LVL 29

Accepted Solution

by:
rdivilbiss earned 2000 total points
ID: 18784402
<head>
...
<meta http-equiv="refresh" content="1" />
...
<head>

Would cause the page to refresh after one second.
0
 
LVL 3

Expert Comment

by:namansshah
ID: 18784541
<body onload="history.go(0)">
0
 
LVL 5

Expert Comment

by:rucky544
ID: 18785000
wouldn't both these refresh ever time the page loads? (go in to a loop?)

Why do you want a page that has just loaded to refresh?
0
 
LVL 3

Expert Comment

by:namansshah
ID: 18785781
you can write the javascript function...if you want to use javascript then
 
function reload_page()
{
          location.reload(true);


}
and you can call this function on body onload or from where you want to call
0
 
LVL 3

Expert Comment

by:namansshah
ID: 18785800
there is another way you can do through javascript

window.location=url
window.location.href=url


here is the sample code
http://www.pageresource.com/jscript/jredir.htm
http://www.codehelp.co.uk/html/location.html

tell me if you need more help
0

Featured Post

Video: Liquid Web Managed WordPress Comparisons

If you run run a WordPress, you understand the potential headaches you may face when updating your plugins and themes. Do you choose to update on the fly and risk taking down your site; or do you set up a staging, keep it in sync with your live site and use that to test updates?

Question has a verified solution.

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

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

765 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