Element.parentTextEdit (Property)

A reference to the next highest object in the hierarchy that allows a TextRange to be created.


JScript - 3.0
Internet Explorer - 4.0
Property/method value type:Element object
JavaScript syntax:IEmyElement.parentTextEdit

TextRange objects can only be created for a limited sub-set of the available objects in the MSIE browser. Only objects that can receive input focus are appropriate.

An object somewhere higher up in the hierarchy is referred to by this property. The document hierarchy may have to be traversed upwards for some considerable distance before a suitable object is found, so this hierarchical model is much more sparsely populated than any of the others.


Example code:

   // Locate a textEdit capable parent object and create an all enclosing text range.
   myParentTextEdit = myElement.parentTextEdit;
   myTextRange = myParentTextEdit.createTextRange();

See also:Element object, Hierarchy of objects, TextRange object

Property attributes: