?
Solved

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

Posted on 2007-03-23
5
Medium Priority
?
1,258 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 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: THE CONCERTO CLOUD FOR HEALTHCARE

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

Question has a verified solution.

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

Find out what you should include to make the best professional email signature for your organization.
The first step to building an amazing About page is to figure out what you want the page to say about your company. You then must grab the attention of the reader, boast a bit, tell a story and let others brag about you. With a little bit of thought…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Suggested Courses

831 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