Having established that a TextRange may correspond to some block of text within the document, this returns a reference to an HTML Element object that fully encloses the TextRange.
For example, if a TextRange was set to bound a couple of Input elements within a Form, this method might return the Form object because that is the next outermost logical object. Of course you could get a TABLE object if the form contained a table with the input elements inside it.
Prev | Home | Next |
TextRange.moveToPoint() | Up | TextRange.pasteHTML() |
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. |