How to refresh the HTML Webpage every few seconds automatically using Meta tags?

Published on June 2, 2013 by abundantcode

Filed under ASP.NET

Last modified June 2, 2013

Print this page

rate 1 star rate 2 star rate 3 star rate 4 star rate 5 star
Your rating: none, Average: 0 (0 votes)

This article have been viewed 4165 times

There may be a scenario where the developer might want to auto refresh the HTML webpage every few seconds automatically.

To auto refresh code in html, one can add the metatag with the http-equip=”refresh” and content attribute. The tag http-equiv should be set to “refresh”, the content attribute of the meta tag should be set to the time limit for refresh.

How to refresh the HTML Webpage every few seconds automatically using Meta tags?

Below is a code snippet which can be used to auto refresh the page every few seconds (5 seconds in the below example).

<meta http-equiv="refresh" content="5" >
0saves
If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.

Leave a Comment


x

You might be Interested in these Posts

Get the Current Location from Windows 8.1 Store App using JavaScript

Below is a sample code snippet demonstrating the procedure on how to get the current user location W...

Can we develop Windows Phone 8.1 App using HTML5 , JavaScript and CSS ?

Most of the developers with the web development skills might be keen to know if they can use their e...

Free Responsive HTML5 & CSS3 Web Templates

Are you looking for free HTML5 and CSS3 templates for building your website ? Here's some of the fre...