Auto refresh page without JavaScript

By | July 23, 2012

In order to automatically refresh page generally(I use) we set JavaScript and mostly use setTimeout() method.

Here I explain one more method for refreshing page without JavaScript. May you know? Yes, exactly it’s Meta tag.

Put below line into your’ page <head> section. It starts to refreshing page. You can also set redirection after given time interval as.

Content : Give time interval(in seconds) when you want to refresh page or redirect on another page or url.

Refresh Same Window:

<meta http-equiv=Refresh content=’10; URL=/—–.htm’>

Redirect on another page or url:

<meta http-equiv=Refresh content=’10; URL=http://www.sourcecodemart.com’>
<meta http-equiv=Refresh content=’10; URL=/—–1.htm’>

Full example:

Leave a Reply

Your email address will not be published. Required fields are marked *