234Part IIIDocument (Web hosting directory) Objects ReferenceAt this point, the entire

234Part IIIDocument Objects ReferenceAt this point, the entire myPelement (including its children) is disabled. Prove it by enteringthe following statement into the top text box: myEM.isDisabledWhile the myEMelement is shown as disabled, no change has accrued to its disabledproperty: myEM.disabledThis property value remains the default false. Related Item:disabledproperty. isMultiLineValue:Boolean.Read-Only Compatibility:WinIE5.5+, MacIE-, NN-, Moz-, Safari- The isMultiLineproperty returns a Boolean value that reveals whether the element objectis capable of occupying or displaying more than one line of text. Importantly, this value doesnot reveal whether the element actually occupies multiple lines; rather, it indicates thepotential of doing so. For example, a text inputelement cannot wrap to multiple lines, so itsisMultiLineproperty is false. However, a buttonelement can display multiple lines oftext for its label, so it reports truefor the isMultiLineproperty. ExampleUse The Evaluator (Chapter 13) to read the isMultiLineproperty for elements on that page. Try the following statements in the top text box: document.body.isMultiLinedocument.forms[0].input.isMultiLinemyP.isMultiLinemyEM.isMultiLineAll but the text field form control report that they are capable of occupying multiple lines. isTextEditValue:Boolean.Read-Only Compatibility:WinIE4+, MacIE4+, NN-, Moz-, Safari- The isTextEditproperty reveals whether an object can have a WinIE TextRangeobjectcreated with its content. (See the TextRangeobject in Chapter 35.) You can createTextRangeobjects only from a limited selection of objects in IE4+ for Windows: body, but- ton, text type input, and textarea. This property always returns falsein MacIE. ExampleGood coding practice dictates that your script check for this property before invoking thecreateTextRange()method on any object. A typical implementation is as follows: if (document.getElementById( myObject ).isTextEdit) { var myRange = document.getElementById( myObject ).createTextRange(); [more statements that act on myRange] } Related Items:createRange()method; TextRangeobject (Chapter 35). elementObject.isDisabled