JavaScript HTML DOM Examples
Use the built-in JavaScript HTML DOM objects.
Document object
More examples of Document objects are in our JavaScript reference manual .
Anchor object
Return the relationship between the current file and the linked document
More examples of Anchor objects are in our JavaScript reference manual .
Area object
Return the alternate text of a certain area of the image map
Return hostname: the port of a certain area of the image map
Return the querystring part of the href attribute of a region
More examples of Area objects can be found in our JavaScript reference manual .
Base object
More examples of Base objects can be found in our JavaScript reference manual .
Button object
More Button object examples are in our JavaScript reference manual .
Form object
More Form object examples are in our JavaScript reference manual .
Frame/IFrame object
Change the background color of a document contained in an iframe
Return and set the value of the scrolling attribute in an iframe
More Frame/IFrame object examples are in our JavaScript reference manual .
Image object
More Image object examples are in our JavaScript reference manual .
Event object
Option and Select objects
The index of the selected option in the pop-up drop-down list
Change the text of the selected option in the drop-down list