Automatically Refresh HTML page or div after specific time Interval
There are several ways to refresh a complete HTML page after specific time interval, and same is the case with any specific Div or Span or any HTML element on a page, that we can refresh any specific part/element of HTML page without reloading the complete page. First let’s take a look at refreshing HTML page after specific time interval, this can be achieved using either JavaScript or by meta tags. A) Using Javascript: You can use either of the following scripts to refresh after every 5 secounds, say: Code I: 1 2 3 4 5 6 7 8 9 OR Code II: 1 2 3 4 5 6 7 8 9 B) Refresh page using Meta tags Its very easy, you just have to put a meta tag in head tag as follows: 1 2 3 4 5 < head > < meta http - equiv = "refresh" content = "5" / > < ! -- This will refresh page in every 5 seconds , change content = x to refresh page ...