584 Part III . Document Objects Reference (Windows 2003 server web) Properties
584 Part III . Document Objects Reference Properties Methods Event Handlers rows type wrap See text input object. Syntax Accessing TEXTAREA element object properties or methods: (All) [window.]document.formName.textareaName.property | method([parameters]) (All) [window.]document.formName.elements[index].property | method([parameters]) (All) [window.]document.forms[index].textareaName.property | method([parameters]) (All) [window.]document.forms[ formName ].textareaName.property | method([parameters]) (All) [window.]document.forms[ formName ].elements[index].property | method([parameters]) (IE4+) [window.]document.all.elemID.property | method([parameters]) (IE5+/NN6) [window.]document.getElementById( elemID ).property | method([parameters]) About this object Although not in the same HTML syntax family as other elements of a form, a TEXTAREA object is indeed a form input element, providing multiple-line text input facilities. Although some browsers let you put a TEXTAREA element anywhere in a document, it really should be contained by a FORM element. A TEXTAREA object closely resembles a text object, except for attributes that define its physical appearance on the page. Because the intended use of a TEXTAREA object is for multiple-line text input, the attributes include specifications for height (number of rows) and width (number of columns in the monospaced font). No matter what size you specify, the browser displays a textarea with horizontal and vertical scrollbars in older browsers; more recent browsers tend to be smarter about displaying scrollbars only when needed (although there are exceptions). Text entered in the textarea wraps within the visible rectangle of the field if you set the WRAP attribute to virtual or physical in NN and soft or hardin IE; otherwise the text scrolls for a significant distance horizontally (the horizontal scrollbar appears when wrapping has the default off setting). This field is, indeed, a primitive text field by GUI computing standards in that font specifications made possible in newer browsers by way of style sheets apply to all text in the box. All properties, methods, and event handlers of text objects apply to the TEXTAREA object. They all behave exactly the same way (except, of course, for the type property, which is textarea). Therefore, refer to the previous listings for the text object for scripting details for those items. Discussed next are a handful of additional properties that are unique to the TEXTAREA object. TEXTAREA
Searching for affordable and proven webhost to host and run your servlet applications? Go to Linux Web Hosting services and you will find it.