From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../htmlhyperlinkelementutils/protocol/index.html | 56 ++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 files/ja/web/api/htmlhyperlinkelementutils/protocol/index.html (limited to 'files/ja/web/api/htmlhyperlinkelementutils/protocol/index.html') diff --git a/files/ja/web/api/htmlhyperlinkelementutils/protocol/index.html b/files/ja/web/api/htmlhyperlinkelementutils/protocol/index.html new file mode 100644 index 0000000000..9b800001ea --- /dev/null +++ b/files/ja/web/api/htmlhyperlinkelementutils/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