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

{{ApiRef("URL API")}}

+ +

HTMLHyperlinkElementUtils.hostname プロパティは、URL のドメインを含む {{domxref("USVString")}} です。

+ +

構文

+ +
string = object.hostname;
+object.hostname = string;
+
+ +

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

仕様

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

ブラウザーの互換性

+ + + +

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

+ +

関連情報

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