-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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")}} |