Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

HTMLTextAreaElement object

Implements the document object model (DOM) representation of the textArea element.

DOM Information

Inheritance Hierarchy

 Node
  Element
   HTMLElement
     HTMLTextAreaElement

Members

The HTMLTextAreaElement object has these types of members:

Methods

The HTMLTextAreaElement object has these methods.

MethodDescription
checkValidity

Returns whether a form will validate when it is submitted, without having to submit it.

setCustomValidity

Sets a custom error message that is displayed when a form is submitted.

 

Properties

The HTMLTextAreaElement object has these properties.

PropertyAccess typeDescription

autofocus

Read/write

Provides a way to direct a user to a specific field when a document loads.

maxLength

Sets or retrieves the maximum number of characters that the user can enter in a text control.

placeholder

Read/write

Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.

required

Read/write

When present, marks an element that can't be submitted without a value.

spellcheck

Read/write

Specifies whether spell checking is applied to an editable text field.

validity

Read-only

Returns a ValidityState object that represents the validity states of an element.

willValidate

Read-only

Returns whether an element will successfully validate based on forms validation rules and constraints.

 

 

 

Show:
© 2014 Microsoft