Using javascript i want to refresh my page every 2 minutes....Is there any function in javascript ?
-------------------
suresh
Using javascript i want to refresh my page every 2 minutes....Is there any function in javascript ?
-------------------
suresh
this method will reload the page when u call the method.....but not for every two minutes......Code:function reload() { window.location.reload(); }
the same situation happened for me also ie...to refresh the page every 30 seconds....my friend gave me a piece of code which refreshes every 30 seconds.....but i didn't tried that.....here is that code...
Code:function refreshPeriodic() { location.reload(); timerID=setTimeout("refreshPeriodic()",30000); } timerID=setTimeout("refreshPeriodic()",30000);
i think it may be useful for u......
Last edited by TigerElango; 02-03-2007 at 08:25 AM.
sorry i don't know why the code is not displayed in the previous reply.........Code:function refreshPeriodic() { location.reload(); timerID=setTimeout("refreshPeriodic()",30000); } timerID=setTimeout("refreshPeriodic()",30000);
Last edited by TigerElango; 02-03-2007 at 08:29 AM.
hi elango i can't see the code..can you upload it. don't use "script" tag..you just post the function.
--------------------
suresh
Code:function refreshPeriodic() { location.reload(); timerID=setTimeout("refreshPeriodic()",30000); } timerID=setTimeout("refreshPeriodic()",30000);
add this
refreshes for every 10 secPHP Code:
<meta http-equiv="refresh" content="10" >
Code:function reFres() { location.reload(true) } /* Set the number below to the amount of delay, in milliseconds, you want between page reloads: 1 minute = 60000 milliseconds. */ window.setInterval("reFres()",3000); // End -->
Code:function fun(){ var a=setTimeout(funName(),1000) }