www.richandlucy.com © www.richandlucy.com
Home | Photos | Stuff | Forum

> Stuff > Lucy's Portfolio! > Javascript Example 11

Document Object Model

Create a web page with some links on it.

When a button is clicked on the page, use a Javascript function to display the links on the page one at a time using document.links (use a for loop iterating over i with i

Also display useful information about the browser etc including the following:

  • Browser type (using navigator)
  • Height and Width of the screen (using screen) and window (using document.body)
  • Last modified date (using document).
  • URL of the current file (using document.location)

For more help look up the following words in any Javascript book or use Shift F1 in Dreamweaver (Book: O'REILLY Javascript Reference).

  • links
  • window
  • screen
  • document
  • location
  • body
  • navigator
  • for

You can see the page created here


2 3 4 5 6 7 8 9 10 11 12 13
© www.richandlucy.com - 2004 All content created and owned by www.richandlucy.com | Contact us