Auto refresh web page

Epitaph picture Epitaph · Jan 15, 2009 · Viewed 67.8k times · Source

I have a web page which allows the user to carry out various operations that in turn modify the database. Also, this web application needs to keep track of various fields in database that keep changing with time. Is refreshing the page every few seconds the best possible way to implement this? For example, if there is a long list on the page requiring scrolling, it is hard to view the list since the page keeps resetting due to the refresh. I know, there are ways to retain the position of the scroll. But, could I use something more efficient?

Answer

Satya picture Satya · Dec 28, 2010

Place it under head tag

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

This will refresh page every after 5 seconds.

For other option refer link text