This property contains a Boolean flag to indicate whether the object can be used to create a TextRange object. This is done with the createTextRange() method. Only the following object classes should yield a true value for this property:
BODY
BUTTON
TextCell
TextArea
If the HTML element represents an <INPUT> tag whose type is TEXT for example, then this value will yield true. Most of the time it will yield false. It is useful for writing generic accessors and handlers for objects which may or may not have selectable or editable text in them.
Logically you would only want to read from this property.
The value yielded by this property will be true if the element represents an editable text field and false if is not.
// An example showing how a text range can be created // conditionally if(myElement.isTextEdit) { myElement.createTextRange(); }
Prev | Home | Next |
Element.isDisabled | Up | Element.lang |
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. |