Easy Tutorial
❮ Met Node Normalize Prop Video Seeking ❯

name Attribute of Textarea

Textarea Object


Example

Get the name of a textarea:

var x = document.getElementById("myTextarea").name;

Definition and Usage

The name attribute sets or returns the name of a textarea.


Browser Support

Attribute Chrome Edge Firefox Safari Opera
name Yes Yes Yes Yes Yes

Syntax

Set the name attribute:

textareaObject.name = text

Return the name attribute:

textareaObject.name

Note: The name attribute has no default value.


Attribute Values

Value Description
text Specifies the name of the textarea
Return Value: String, representing the name of the textarea
❮ Met Node Normalize Prop Video Seeking ❯