HTMLTextAreaElement: name プロパティ - Web API | MDN
要素の名前を表す文字列です。
js
const textareaElement = document.querySelector("#message"); console.log(`Element's name: ${textareaElement.name}`); textareaElement.name = "response"; // 要素の名前を設定または更新する
HTMLTextAreaElement.value
HTMLTextAreaElement.textLength
Yes No
Learn how to contribute
This page was last modified on 2025年6月3日 by MDN contributors.