Textarea form Attribute
Definition and Usage
form
The property returns a reference to the form containing the text area.
This property returns the form object on success.
Example
Returns the id of the form containing the text area:
var x = document.getElementById("myTextarea").form.id;
Syntax
textareaObject.form
Technical Details
Return Value: |
Reference to the form element containing the text area. Returns if the text area is not in the form. |
---|
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |