Computing.Net > Forums > Web Development > Refresh a page once?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Refresh a page once?

Reply to Message Icon

Name: XP_Nemesis
Date: March 22, 2004 at 11:44:58 Pacific
OS: XP Pro
CPU/Ram: 1gig
Comment:

Is there a way to use javascript to refresh a page once onLoad? w/out getting stuck in a loop?

I have this but it gets stuck in a loop:

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<script type="text/javascript">
function refreshPage(){
window.location.reload( false );
}

</script>
</head>
<body onLoad="refreshPage()">
woot
</body>
</html>


PLEASE HELP



Sponsored Link
Ads by Google

Response Number 1
Name: gpp
Date: March 22, 2004 at 13:20:43 Pacific
Reply:

<body onLoad="if (location.href.indexOf('reload')==-1) location.replace(location.href+'?reload')">


0

Response Number 2
Name: Code One
Date: March 23, 2004 at 18:22:54 Pacific
Reply:

@GP

Nice!!!


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Refresh a page once?

Auto refreshing a page once loaded www.computing.net/answers/webdevel/auto-refreshing-a-page-once-loaded/2367.html

Refresh once on pageload www.computing.net/answers/webdevel/refresh-once-on-pageload/3244.html

Music DLing on a page www.computing.net/answers/webdevel/music-dling-on-a-page/2089.html