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/HTMLAnchorElement/host below:

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

HTMLAnchorElement: host プロパティ

Baseline Widely available

HTMLAnchorElement.host プロパティは、ホストを含む文字列です。すなわち、ホスト名の後に、 URL のポートが空でない場合は、':'、および URL のポートが続きます。

値

文字列です。

例
const anchor = document.createElement("a");

anchor.href = "https://developer.mozilla.org/ja/HTMLAnchorElement";
anchor.host === "developer.mozilla.org";

anchor.href = "https://developer.mozilla.org:443/ja/HTMLAnchorElement";
anchor.host === "developer.mozilla.org";
// The port number is not included because 443 is the scheme's default port

anchor.href = "https://developer.mozilla.org:4097/ja/HTMLAnchorElement";
anchor.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