JavaScript HTML DOM Examples
Examples of using JavaScript to access and manipulate DOM objects.
The Document Object
Display all name/value pairs of cookies in a document
Display the domain name of the server that loaded the document
Display the date and time the document was last modified
Display the title of a document
Display the full URL of a document
Replace the content of a document
Open a new window, and add some content
Display the number of elements with a specific name
Display the number of elements with a specific tag name
The Anchors Collection
The Links Collection
Display the number of links in a document
Display the href attribute of the first link in a document