Solved

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

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This article discusses how to create an extensible mechanism for linked drop downs.
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.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

730 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