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/hostname/index.html | 60 ++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 files/ja/web/api/url/hostname/index.html (limited to 'files/ja/web/api/url/hostname') diff --git a/files/ja/web/api/url/hostname/index.html b/files/ja/web/api/url/hostname/index.html new file mode 100644 index 0000000000..77f19bbe91 --- /dev/null +++ b/files/ja/web/api/url/hostname/index.html @@ -0,0 +1,60 @@ +--- +title: URL.hostname +slug: Web/API/URL/hostname +tags: + - API + - Property + - Reference + - URL + - hostname +translation_of: Web/API/URL/hostname +--- +
{{ApiRef("URL API")}}
+ +

{{domxref("URL")}} インターフェイスの hostname プロパティは、URL のドメインを含む {{domxref("USVString")}} です。

+ +

{{AvailableInWorkers}}

+ +

構文

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

+ +

{{domxref("USVString")}}。

+ +

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

仕様

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

ブラウザーの互換性

+ + + +

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

+ +

関連情報

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