Log in

View Full Version : Refresh page once



jimwww
05-06-2008, 05:31 PM
I have a need to refresh a page once after (immediately) after it loads.
Can anyone share with me how to attain this? :)
thanks

(Why I need it is that I have a page with two frames. Upper frame has some text in it from my server. Lower page is loaded from an e commerce server and for some reason it does not load with his name at the top - attributing sales to him- but if you refresh it does - not sure why)

jimwww
05-06-2008, 05:45 PM
I think I have it -

<body onLoad=window.refresh>

Put this in the body section and it will reload once.

gotrendme
01-06-2012, 05:30 AM
I searched for a cut and paste example for this and could not find one, so I created one.

The snippet above will only loop because every time the page loads, it triggers that onload event.

Every solution I found was either a loop or incomplete with no examples.

Here is the solution I came up with and it works as I am using it on my website now:

http://www.gotrend.me/blog/pages/WebDeveloperJournal.php?entry=2927

Yes, I include the example code here too. :cool:

Robert