From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/web/api/url/password/index.html | 63 ++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 files/ja/web/api/url/password/index.html (limited to 'files/ja/web/api/url/password/index.html') diff --git a/files/ja/web/api/url/password/index.html b/files/ja/web/api/url/password/index.html new file mode 100644 index 0000000000..b34ee0980b --- /dev/null +++ b/files/ja/web/api/url/password/index.html @@ -0,0 +1,63 @@ +--- +title: URL.password +slug: Web/API/URL/password +tags: + - API + - Property + - Reference + - URL + - password +translation_of: Web/API/URL/password +--- +
{{ApiRef("URL API")}}
+ +

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

+ +

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

+ +

{{AvailableInWorkers}}

+ +

構文

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

+ +

{{domxref("USVString")}}。

+ +

+ +
var url = new URL('https://anonymous:flabada@developer.mozilla.org/en-US/docs/Web/API/URL/password');
+var result = url.password; // 戻り値: "flabada"
+
+ +

仕様

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

ブラウザーの互換性

+ + + +

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

+ +

関連情報

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