This is a deep copy of a TextRange object. Simply assigning the value of one variable copies only the reference to the same object. You need to call this method to create a new object whose properties are set to the same values as its parent.
Prev | Home | Next |
TextRange.compareEndPoints() | Up | TextRange.execCommand() |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |