Refresh HTML Page automatically

To refresh HTML Page automatically put following code in <head> Tag.

<meta http-equiv="refresh" content="2" >

it will refresh page after every 2sec.

For example here is a demo html page...


<meta http-equiv=”refresh” content=”2″ >
Home page


2 thoughts on “Refresh HTML Page automatically

  1. Wouldn’t this affect performance? Is there a way of refreshing only a part of a website automatically other than Ajax?

    • Yes, it will affect. For updating a part of a webpage use Ajax.
      Other than Ajax u can use iframe, put a page in iframe and refresh it automatically but of course it is not a good option when Ajax is Here 🙂

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s