From 6b3447245ebda4ea664c3be0ebd828e0430c6eff Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Sat, 26 Oct 2024 23:28:16 +0900 Subject: [PATCH] =?UTF-8?q?2024/08/29=20=E6=99=82=E7=82=B9=E3=81=AE?= =?UTF-8?q?=E8=8B=B1=E8=AA=9E=E7=89=88=E3=81=AB=E5=9F=BA=E3=81=A5=E3=81=8D?= =?UTF-8?q?=E6=96=B0=E8=A6=8F=E7=BF=BB=E8=A8=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/api/htmlbuttonelement/name/index.md | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 files/ja/web/api/htmlbuttonelement/name/index.md diff --git a/files/ja/web/api/htmlbuttonelement/name/index.md b/files/ja/web/api/htmlbuttonelement/name/index.md new file mode 100644 index 00000000000000..106c3866cc2386 --- /dev/null +++ b/files/ja/web/api/htmlbuttonelement/name/index.md @@ -0,0 +1,36 @@ +--- +title: "HTMLButtonElement: name プロパティ" +short-title: name +slug: Web/API/HTMLButtonElement/name +l10n: + sourceCommit: d064784c78ec30c87ec3c3d9681b147999fd782f +--- + +{{ApiRef("HTML DOM")}} + +**`name`** は {{domxref("HTMLIHTMLButtonElementnputElement")}} インターフェイスのプロパティで、この {{HTMLElement("button")}} 要素の名前を示します。これは、この要素の [`name`](/ja/docs/Web/HTML/Element/button#name) 属性を反映します。 + +## 値 + +この要素の名前を表す文字列です。 + +## 例 + +```js +const buttonElement = document.querySelector("#myButton"); +console.log(`Element's name: ${buttonElement.name}`); +buttonElement.name = "newName"; +``` + +## 仕様書 + +{{Specifications}} + +## ブラウザーの互換性 + +{{Compat}} + +## 関連情報 + +- {{domxref("HTMLButtonElement.value")}} +- {{domxref("HTMLButtonElement.type")}}