Javascript Reference
Categories: Element

javascript Element IsMultiLine

@March 15, 2008, 1:22 a.m.
isMultiLineFirefox/Netscape/NN n/a IE 5.5(Win) Chrome/Safari/DOM n/a  

Read-only  

Specifies whether the current element allows content to extend across multiple lines. Most text containers allow multiple lines, but other kinds of elements, such as a text input element are restricted to single line rendering.

 
Example
 
if (document.getElementById("elementID").isMultiLine) {
    // process the element as a potential multiple-line element
}
 
Value

Boolean value: true | false.

 
Default

Element default.


Powered by Linode.