TOC PREV NEXT INDEX

domref



selectNode


Sets the Range to contain the node and its contents.

Syntax

range.selectNode(referenceNode);
 

Parameters

The selectNode() method takes the following parameters:

referenceNode
 

The Node to select within a Range

Example

range = document.createRange();
 
referenceNode = document.getElementsByTagName("div").item(0);
 
range.selectNode(referenceNode);
 

Notes

The parent Node of the start and end of the Range will be the same as the parent of the referenceNode.

Specification

selectNode


Netscape Communications
http://developer.netscape.com
TOC PREV NEXT INDEX