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...

<html>
<head>


<title></title>
<meta http-equiv=”refresh” content=”2″ >
</head>
<body>
Home page
</body>
</html>

 
Advertisements

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:

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s