Solved

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

Posted on 2007-03-23
5
1,238 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Do you want to insert HTML5 video into your site? This is the tutorial how to do so. What are the main advantages of HTML5 video? 1) Have good compression, good image quality, and low decode processor use. 2) It is royalty-free 3) It is easi…
Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
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…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

760 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

20 Experts available now in Live!

Get 1:1 Help Now