Easy Tutorial
❮ Prop Hidden Value Prop Audio Seekable ❯

form Attribute for Textarea

Textarea Object


Example

Return the id of the form that the textarea belongs to:

document.getElementById("myTextarea").value = "tutorialpro";

Definition and Usage

The form attribute returns a reference to the form that contains the textarea element.

If successful, this attribute returns a form object.

Syntax

textareaObject.form

Browser Support

Attribute Chrome Edge Firefox Safari Opera
form Yes Yes Yes Yes Yes

Technical Details

| Return Value: | Returns a reference to the form that contains the textarea element, or null if the textarea is not in a form. |


Textarea Object

❮ Prop Hidden Value Prop Audio Seekable ❯