Advertisement
Online Test Banks
Score higher
See Online Test Banks
eLearning
Learning anything is easy
Browse Online Courses
Mobile Apps
Learning on the go
Explore Mobile Apps
Dummies Store
Shop for books and more
Start Shopping

How to Use Core DOM Objects to Manage Application Content

Part of the HTML5 Programming with JavaScript For Dummies Cheat Sheet

The goal of any JavaScript application is to manage content. This means adding, deleting, and editing the HTML document that holds the various elements that structure and support the content. These objects provide access to all the document details with regard to content.

Object Description
Attr Provides access to individual attributes within the document. You can see a complete list of the methods and properties associated with this object at www.w3schools.com/jsref/dom_obj_attr.asp.
document Provides access to the entire document. You can use this object to access any part of the document. In addition, this object lets you display information directly on the page and perform other tasks related to the user interface. You can see a complete list of the methods and properties associated with this object at www.w3schools.com/jsref/dom_obj_core_document.asp.
Element Contains an individual document element of any type supported as XML. This object provides access to attributes through the Attr object and properties through the Node object. You can see a complete list of the methods and properties associated with this object at www.w3schools.com/jsref/dom_obj_element.asp.
Events Supports access to existing events and creation of new ones. You can see a complete list of the methods and properties associated with this object at www.w3schools.com/jsref/dom_obj_event.asp.
HTMLElement Contains an individual HTML document element, such as a paragraph or a control. Use the Element and Node objects to gain access to element attributes and properties. You can see a complete list of the methods and properties associated with this object at www.w3schools.com/jsref/dom_obj_all.asp.
Node Defines the particulars of any given node, which can include the document as a whole, an element within the document, and an attribute provided as part of an element, text, and comments. You can see a complete list of the methods and properties associated with this object at www.w3schools.com/jsref/dom_obj_node.asp.
NodeFilter Specifies which nodes appear as part of a NodeIterator used to traverse the list of nodes within a document. You can see a complete list of the methods and properties associated with this object at https://developer.mozilla.org/en-US/docs/DOM/NodeFilter.
NodeIterator Provides a method of obtaining a list of nodes within a document. Traversing the list of nodes can help you locate specific nodes and interact with them. For example, you might find all of the <input> tag nodes and add a particular attribute to them. You can see a complete list of the methods and properties associated with this object at https://developer.mozilla.org/en-US/docs/DOM/NodeIterator.
NodeList Contains an ordered list of all the nodes within the document or in a particular area of the document. You can see a complete list of the methods and properties associated with this object at www.w3schools.com/jsref/dom_obj_nodelist.asp.
NamedNodeMap Contains an unordered list of all the nodes within the document or in a particular area of the document. You can see a complete list of the methods and properties associated with this object at www.w3schools.com/jsref/dom_obj_namednodemap.asp.
  • Add a Comment
  • Print
  • Share
blog comments powered by Disqus
Advertisement
Advertisement

Inside Dummies.com

Dummies.com Sweepstakes

Win an iPad Mini. Enter to win now!