From 05b2650717b84d199f6ebd5df8a8f9d1e3b23f3f Mon Sep 17 00:00:00 2001 From: Florian Merz Date: Tue, 23 Feb 2021 15:56:25 +0100 Subject: sync: move --- .../web/api/htmlanchorelement/password/index.html | 58 ++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 files/ja/web/api/htmlanchorelement/password/index.html (limited to 'files/ja/web/api/htmlanchorelement/password') diff --git a/files/ja/web/api/htmlanchorelement/password/index.html b/files/ja/web/api/htmlanchorelement/password/index.html new file mode 100644 index 0000000000..d973268e54 --- /dev/null +++ b/files/ja/web/api/htmlanchorelement/password/index.html @@ -0,0 +1,58 @@ +--- +title: HTMLHyperlinkElementUtils.password +slug: Web/API/HTMLHyperlinkElementUtils/password +tags: + - API + - Experimental + - HTMLHyperlinkElementUtils + - Property + - URL API +translation_of: Web/API/HTMLHyperlinkElementUtils/password +--- +

{{ApiRef("URL API")}}

+ +

HTMLHyperlinkElementUtils.password プロパティは、ドメイン名の前に指定されたパスワードを含む {{domxref("USVString")}} です。

+ +

最初に username プロパティを設定せずに設定しようとすると、静かに失敗します。

+ +

構文

+ +
string = object.password;
+object.password = string;
+
+ +

+ +
// <a id="myAnchor" href="https://anonymous:flabada@developer.mozilla.org/en-US/docs/HTMLHyperlinkElementUtils.username"> 要素がドキュメントにあるとします
+var anchor = document.getElementByID("myAnchor");
+var result = anchor.password; // 戻り値: 'flabada'
+
+ +

仕様

+ + + + + + + + + + + + + + +
仕様状態コメント
{{SpecName('HTML WHATWG', '#dom-hyperlink-password', 'HTMLHyperlinkElementUtils.password')}}{{Spec2('HTML WHATWG')}}初期定義
+ +

ブラウザーの互換性

+ + + +

{{Compat("api.HTMLHyperlinkElementUtils.password")}}

+ +

関連情報

+ + -- cgit v1.2.3-54-g00ecf