Auto Refresh Page after few seconds Using Javascript
Hello Friends,
Do you want to refresh your page after few second automatically? I need to auto refresh my web page after every 5 seconds 10 seconds or 1 minute. We can do this with javascript or with meta tag of html. Auto load the web page after every 10 seconds or 30 seconds using below code.
:Using HTML Meta Tag:
Meta HTML tag,The element provides meta-information about your page. You can include this tag inbetween tag.
Refresh Page after every 10 seconds.
<meta http-equiv=”refresh” content=”10; URL=http://www.programmingfacts.com”>
:Using Javascript:
You can also do this by using javascript setTimeout function. Just call this function in onLoad event of body tag.
Specify timeperiod in milliseconds. So if you want to refresh web page after every 5 second than timeperiod will be 5000.
<body onload=”javascript:setTimeout(“location.reload(true);”,timeperiod);”>
Thats it. I hope this may be helpful. Let me know if you find any problem.
Posts Related to Auto Refresh Page after few seconds Using Javascript
Set Meta Tags (SEO Tags) in CakePHP
Hello Friends, In my previous post, i show you the way how to set Page Title Tag in CakePHP. But setting Meta keywords and Meta ...
Set Meta Title (Page Title) in CakePHP 1.2/1.3
Hello Friends, As i mention in my previous posts, CakePHP 1.3 come up with lots of new syntax changes. I was looking for a Meta ...
Find Next and previous mysql records relative to current page
Hello Friends, I have photo details page and i need to put next photo and previous photo link. To achieve this, i need to get ...
Go to top of webpage with jQuery Dialog box/model box
Hello Friends, Today i was working with jQuery model box, everything was fine but the problem with page length. Page was long and i need ...
[JavaScript] How to Reload iFrame – Works in FF, Crome, IE, Safari
Hello Friends, I was working with one web application and I placed a iFrame in it. I am making ajax call and updating iFrame files. ...
You can leave a response or trackback from your own site.






I am
about 5 months ago
How do I place the tag in the html body of a website.
I want to see a page online to be refreshed every 10 seconds for instance. Now I would not be able to make changes to the html tags, would I?
in the case of using java Script, where do I place that?
I really appreciate it if you can help me out, even better if you explain it with a sample, or refer me to another website, to understand that better.
Thank you.