35 out of 54 rated this helpful - Rate this topic

textarea element | textArea object

[This documentation is preliminary and is subject to change.]

Specifies a multiline text input control.

HTML 4.01 Specification, Section 17.7

Standards information

HTML information

Closing Tagrequired
CSS Displayinline

DOM Information

Inheritance Hierarchy

 Node
  Element
   HTMLElement
     textArea

Remarks

The default font is fixed pitch.

Security Warning:  Using this object incorrectly can compromise the security of your application. When submitting text through TEXTAREA over an intranet or the Internet, validating the text string is recommended. For instance, you might validate the string for a restricted set of known, good values (such as letters and numbers) and ignore the rest. You should review the Security Considerations: Dynamic HTML before continuing.

Examples

This example uses the TEXTAREA element to set the cascading style sheets (CSS) overflow attribute to "hidden" to remove the scroll bars from the TEXTAREA.


<TEXTAREA STYLE="overflow:hidden" ID=txtComments>
   The patient is in stable condition after suffering an attack of 
   the insatiable munchies.
</TEXTAREA>

See also

input

 

 

Build date: 3/8/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Issue with Mouse events and transparent background on Input elements and Textareas
Please consider the following article:
http://blog.rednael.com/2009/09/01/TrappingMouseEventsOnTransparentInputElementsOrTextareasInIE.aspx

It describes an issue when trying to trap mouse events on transparent Input elements (type=text) and Textarea elements.
Remark - time consumption - on paste

For accelerator-key-and drag-pasting large MB-text, which is excruciatingly slow--

See, How to use an HTML text area and JScript to speed-up pasting to fast:
http://msdn.microsoft.com/en-us/library/ms531186(VS.85).aspx