Skip to content

Commit

Permalink
2024/08/29 時点の英語版に基づき新規翻訳
Browse files Browse the repository at this point in the history
  • Loading branch information
mfuji09 committed Oct 26, 2024
1 parent 8c4314f commit 6b34472
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions files/ja/web/api/htmlbuttonelement/name/index.md
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")}}

0 comments on commit 6b34472

Please sign in to comment.