← 返回首页
HTMLTextAreaElement: name プロパティ - Web API | MDN

このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。

View in English Always switch to English

HTMLTextAreaElement: name プロパティ

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015年7月.

HTMLTextAreaElement インターフェイスの name プロパティは、<textarea> 要素の名前を表します。要素の name 属性を反映します。

In this article

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

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

仕様書

Specification
HTML
# dom-textarea-name

ブラウザーの互換性

Enable JavaScript to view this browser compatibility table.

関連情報