
This chapter provides reference information for the DOM Range interface.
DOM 2 Range Interface
Properties
| |
Returns a boolean indicating whether a range is collapsed.
|
| |
Returns the deepest Node that contains the startContainer and endContainer Nodes.
|
| |
Returns the Node within which the Range ends.
|
| |
Returns a number representing where in the endContainer the Range ends.
|
| |
Returns the Node within which the Range starts.
|
| |
Returns a number representing where in the startContainer the Range starts.
|
Creation Methods
| |
Returns a new Range object.
|
| |
Sets the start position of a Range.
|
| |
Sets the end position of a Range.
|
| |
Sets the start position of a Range relative to another Node.
|
| |
Sets the start position of a Range relative to another Node.
|
| |
Sets the end position of a Range relative to another Node.
|
| |
Sets the end position of a Range relative to another Node.
|
| |
Sets the Range to contain the node and its contents.
|
| |
Sets the Range to contain the contents of a Node.
|
Editing Methods
| |
Collapses the Range to one of its boundary points.
|
| |
Returns a document fragment copying the nodes of a Range.
|
| |
Removes the contents of a Range from the document.
|
| |
Moves contents of a Range from the document tree into a document fragment
|
| |
Insert a node at the start of a Range.
|
| |
Moves content of a Range into a new node.
|
Other Methods
| |
Compares the boundary points of two Ranges.
|
| |
Returns a Range object with boundary points identical to the cloned Range.
|
| |
Releases Range from use to improve performance.
|
| |
Returns the text of the Range.
|
Netscape Communications
http://developer.netscape.com
|