HTML DOM Examples
Examples of HTML DOM objects accessed and manipulated using JavaScript.
Document Object
- More Document object examples, in ourJavaScript Reference Manual.
Anchor Object
- Return the relationship between the current document and the linked document
- More Anchor object examples, in ourJavaScript Reference Manual.
Area Object
- Return the alternative text of a certain area of an image map
- Return the hostname and port of a certain area of an image map
- Return the value of the target of a certain area of an image map
- More Area object examples, in ourJavaScript Reference Manual.
Base Object
- Return the root URL of all relative URLs on the page, that is, the href attribute value of the base tag.
- Return the opening method corresponding to the root URL of all relative URLs on the page, that is, the target attribute value of the base tag.
- More Base object examples, in ourJavaScript Reference Manual.
Button Object
- More Button object examples in ourJavaScript Reference Manual.
Form Object
- More Button object examples in ourJavaScript 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 in ourJavaScript Reference Manual.
Image Object
- More Image object examples in ourJavaScript Reference Manual.