Hi,
I am using javascript function for refreshing html page. I have used [window.location.reload(true);] method to reload page from server. This code works if i use it by using Link/button etc.
For Example: <input type=”button” value=”Refresh” onclick=”window.location.reload(true);” />
But i want to refresh page when page loads.
For Example: <body onload = “window.location.reload(true);>
But this time, page reloads in an infinite loop. i don’t know why…
I have also used following function (against body onLoad) to reload and then stop, but this also does’nt work.
function doLoad(){
var timeoutId = setTimeout( window.location.reload(true), 1000 );
window.clearTimeout(timeoutID);
}
Is there a way to stop reloading page after one refresh ?
Thanks…