Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Refresh a Page 1

Status
Not open for further replies.

atferraz

Technical User
Aug 23, 2003
129
0
0
PT
How can I Refresh my default or any other page with vbscript and javascript?

Thanks any one
 
javascript:refresh()
or
javascript:reload()

a simple refresh.


automatic refresh:
add the meta tag as below
<meta HTTP-EQUIV=&quot;Refresh&quot; CONTENT=&quot;60;URL=urPage.html&quot;>

 
thanks for the tip:
the <meta> one did work fine.
as for the second, I´ve this code
.....
<%else%>
<script language=&quot;JavaScript&quot;>
PLACE FOR THE REFRESH SENTENCE.Now I can I referesh my default page from here.
</script>
<%end if%>
.....
 
<script language=&quot;JavaScript&quot;>
<!--

var sURL = unescape(window.location.pathname);

function doLoad()
{
setTimeout( &quot;refresh()&quot;, 2*1000 );
}

function refresh()
{
window.location.href = sURL;
}
//-->
</script>



insert this script in the else part or ur code....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top