Auto refresh page without JavaScript

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=’>
<meta http-equiv=Refresh content=’10; URL=/—–1.htm’>

Full example:

[gist id=”8368047″]

Leave a Reply

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