textarea element | textArea object
[This documentation is preliminary and is subject to change.]
Specifies a multiline text input control.
![]() |
Standards information
- HTML 4.01 Specification, Section 17.7
HTML information
| Closing Tag | required |
|---|---|
| CSS Display | inline |
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
Build date: 3/8/2012
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.
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.
- 9/1/2009
- rednael
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
- 7/9/2008
- Mr. Raymond Kenneth Petry
