The contects of the current selection are cleared. This is very tricky to do neatly and even harder to accomplish in a portable manner. It is probably better to use the more structured innerHTML and related properties of the DOM hierarchy to accomplish the effects you want.
Prev | Home | Next |
Selection object | Up | selection.createRange() |
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. |