js24
Java Script in 24 Hours - Hour 4:






pg.52 - Several properties of the document object include information about the current document in general.

HTML and JavaScript code =

results:



listing 4.1 pg.53 - displaying the Last Modified Date

HTML and JavaScript code =

result (with added html formating):

HTML file "JS in 24 hours" - listing 4.1


pg.54 - links and anchors

HTML and JavaScript code =

result:

Anchor 1


listing 4.2 pg.57 - back and forward buttons

HTML and JavaScript code =

result:

HTML file "JS in 24 hours" - listing 4.2


extra exercise pg.59 - include a relode button along with the back and forward buttons

HTML and JavaScript code =

result:



extra exercise pg.59a - modify back and forward buttons to display current number of history entries

HTML and JavaScript code =

result: