This is somewhat similar to the innerHTML of an Element object. In this case the start and end points of the TextRange are taken as the delimiting boundaries. The HTML contained within those boundaries can be returned to your script when the property is read.
Because this property is read-only, you will need to use the pasteHTML() method to replace the HTML bounded by a TextRange object.
See also: | TextRange.pasteHTML(), TextRange.text |
Prev | Home | Next |
TextRange.getClientRects() | Up | TextRange.inRange() |
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. |