Chapter 75. Automatically Refreshing the Page

Normally, the visitor needs to click the browser's Refresh button to reload the current Web page. But there's an easy way for you, the designer, to build an automatic refresh cycle into your page, so that the browser reloads the current document without the visitor's interaction. This trick comes in handy if your page contains time-sensitive or real-time information, like the current weather conditions, stock quotes, or inventory levels.


Information is said to be real-time if it reflects the current, up-to-the-second state, whether it's the number of units of product in a warehouse, the price of a share of stock, or the national debt.

Say you have a Web page that generates and displays ...

Get Web Design Garage now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.