Examples of using JavaScript to access and manipulate DOM objects.
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 URL of the document that loaded the current document
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
Find the number of anchors in a document
Find the innerHTML of the first anchor in a document
Display the number of links in a document
Display the href attribute of the first link in a document
Find the number of forms in a document
Find the name of the first form in a document
Return the number of images in a document
Return the id of the first image in a document
Change the
visibility of an HTML element
Change the background color
of an HTML element