HTMLTextAreaElement: name プロパティ - Web API | MDN

要素の名前を表す文字列です。

js

const textareaElement = document.querySelector("#message");
console.log(`Element's name: ${textareaElement.name}`);
textareaElement.name = "response"; // 要素の名前を設定または更新する

仕様書

Specification
HTML
# dom-fe-name

ブラウザーの互換性

関連情報

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.