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/protocol/index.html | 56 ++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 files/ja/web/api/htmlanchorelement/protocol/index.html (limited to 'files/ja/web/api/htmlanchorelement/protocol') diff --git a/files/ja/web/api/htmlanchorelement/protocol/index.html b/files/ja/web/api/htmlanchorelement/protocol/index.html new file mode 100644 index 0000000000..9b800001ea --- /dev/null +++ b/files/ja/web/api/htmlanchorelement/protocol/index.html @@ -0,0 +1,56 @@ +--- +title: HTMLHyperlinkElementUtils.protocol +slug: Web/API/HTMLHyperlinkElementUtils/protocol +tags: + - API + - Experimental + - HTMLHyperlinkElementUtils + - Property + - URL API +translation_of: Web/API/HTMLHyperlinkElementUtils/protocol +--- +

{{ApiRef("URL API")}}

+ +

HTMLHyperlinkElementUtils.protocol プロパティは、最後の ':' を含む URL のプロトコルスキームを表す {{domxref("USVString")}} です。

+ +

構文

+ +
string = object.protocol;
+object.protocol = string;
+
+ +

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

仕様

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

ブラウザーの互換性

+ + + +

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

+ +

関連情報

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