A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/ja/docs/Web/API/HTMLAreaElement/host below:

HTMLAreaElement: host プãƒãƒ‘ティ - Web API

HTMLAreaElement: host プロパティ

Baseline Widely available

host は HTMLAreaElement インターフェイスのプロパティで、ホスト名、すなわち hostname が入った文字列で、 URL のポート番号が空でない場合は、 ":" に続いて URL のポート番号が続きます。この URL に hostname がない場合は、このプロパティには空文字列 ("") が入ります。

詳しくは URL.host を参照してください。

値

文字列です。

例
const area = document.createElement("area");

area.href = "https://developer.mozilla.org/ja/HTMLAreaElement";
area.host === "developer.mozilla.org";

area.href = "https://developer.mozilla.org:443/ja/HTMLAreaElement";
area.host === "developer.mozilla.org";
// ポート番号は、 443 がスキームの既定のポートであるため含まれない

area.href = "https://developer.mozilla.org:4097/ja/HTMLAreaElement";
area.host === "developer.mozilla.org:4097";
仕様書 ブラウザーの互換性 関連情報

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4