Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> JavaScript >> Snippet

32 Dynamic HTML


HTML pages are static - once loaded they cannot change.

JavaScript do have the ability to change the content and look of a web page.

The exception to these rules are that most browsers support non - standard features which
allow the HTML page to change without user interaction.  Client - pull and server - push are
the two technologies which may be used.

Client - Pull
Browser responds to < header > atttibute called "Refresh"

< meta http - equiv = "Refresh" content = "value" >

- value = 1 + and browser delays that many second before reloading the page
- value = 0 and it reloads as often as possible

< meta http - equiv = "Refresh" content = "15; URL= http://www.garybeene.com " >

change value to include a number and a URL to redirect browser to a new page after the delay time

- note : URL must be absolute, not relative


Server - Push
- not covered in these tutorials