Solved

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

Posted on 2007-03-23
5
1,241 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
  • 3
5 Comments
 
LVL 29

Accepted Solution

by:
rdivilbiss earned 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Find out what you should include to make the best professional email signature for your organization.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

920 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now