DOM:range.cloneRange
From MDC
Contents |
[edit] Summary
Returns a Range object with boundary points identical to the cloned Range.
[edit] Syntax
clone = range.cloneRange();
[edit] Example
range = document.createRange();
range.selectNode(document.getElementsByTagName("div").item(0));
clone = range.cloneRange();
[edit] Notes
clone is copied by value, not reference, so a change in either Range does not effect the other.