TOC PREV NEXT INDEX

domref



cloneRange


Returns a Range object with boundary points identical to the cloned Range.

Syntax

clone = range.cloneRange();
 

Parameters

clone is a Range object.

Example

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

Notes

clone is copied by value, not reference, so a change in either Range does not effect the other.

Specification

cloneRange


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