Results 61 - 80 of 1,243

Introduction to the DOM

This section provides a brief conceptual introduction to the DOM: what it is, how it provides structure for HTML and XML documents, how you can access it, and how this API presents the reference information and examples.
DOM Guide Reference Référence

Locating DOM elements using selectors

The Selectors API provides methods that make it quick and easy to retrieve Element nodes from the DOM by matching against a set of selectors. This is much faster than past techniques, wherein it was necessary to, for example, use a loop in JavaScript code to locate the specific items you needed to find.
Beginner DOM Firefox 3.5 NeedsBeginnerUpdate

Traversing an HTML table with JavaScript and DOM Interfaces

This article is an overview of some powerful, fundamental DOM level 1 methods and how to use them from JavaScript. You will learn how to create, access and control, and remove HTML elements dynamically. The DOM methods presented here are not specific to HTML; they also apply to XML. The demonstrations provided here will work fine in any modern browser, including all versions of Firefox and IE 5+.
DOM Guide HTML JavaScript

Whitespace in the DOM

The presence of whitespace in the DOM can make manipulation of the content tree difficult in unforeseen ways. In Mozilla, all whitespace in the text content of the original document is represented in the DOM (this does not include whitespace within tags). (This is needed internally so that the editor can preserve formatting of documents and so that white-space: pre in CSS will work.) This means that:
DOM Intermediate NeedsUpdate

DocumentFragment

The DocumentFragment interface represents a minimal document object that has no parent. It is used as a light-weight version of Document to store well-formed or potentially non-well-formed fragments of XML.
API DocumentFragment DOM

DocumentFragment.querySelector()

The DocumentFragment.querySelector() method returns the first element, or null if no matches are found, within the DocumentFragment (using depth-first pre-order traversal of the document's nodes) that matches the specified group of selectors.
API DocumentFragment DOM Method

DocumentFragment.querySelectorAll()

The DocumentFragment.querySelectorAll() method returns a NodeList of elements within the DocumentFragment (using depth-first pre-order traversal of the document's nodes) that matches the specified group of selectors.
API DocumentFragment DOM Method

DocumentType

The DocumentType interface represents a Node containing a doctype.
API DocumentType DOM Interface

DOMCursor.continue()

The continue method is used to tell the cursor to move to the next result. The DOMCursor's success or error is called with the DOMCursor's result updated accordingly.
API DOM Method Reference

DOMError

The DOMError interface describes an error object that contains an error name.
API DOM Interface Reference

DOMRequest.result

This property provides the result value from a DOMRequest operation.
API DOM Property Reference

DOMRequest.error

This property can contain error information in a DOMError object.
API DOM Property Reference

DOMRequest.onerror

This property specifies a callback function to be run when a DOMRequest fails.
API DOM Property Reference

DOMRequest.onsuccess

This property specifies a callback function to be run when a DOMRequest completes successfully.
API DOM Property Reference

DOMRequest.readyState

This property is a string that indicates whether or not a DOMRequest operation has finished running.
API DOM Property Reference

DOMRequest.result

This property provides the result value from a DOMRequest operation.
API DOM Property Reference