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

Full example:

[gist id=”8368047″]

Be the first to comment on "Auto refresh page without JavaScript"

Leave a comment

Your email address will not be published.


*