collapse
Collapses the Range to one of its boundary points.
Syntax
Parameters
The collapse method takes the following parameters:
Example
range = document.createRange(); referenceNode = document.getElementsByTagName("div").item(0); range.selectNode(referenceNode); range.collapse(true);
Notes
A collapsed Range is empty, containing no content, specifying a single-point in a DOM tree. To determine if a Range is already collapsed, see the collapsed property.
Specification
Netscape Communications http://developer.netscape.com |