HTMLHyperlinkElementUtils.hostname
HTMLHyperlinkElementUtils.hostname
プロパティは、URL のドメインを含む 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'
仕様
仕様 | 状態 | コメント |
---|---|---|
HTML Living Standard HTMLHyperlinkElementUtils.hostname の定義 |
現行の標準 | 初期定義 |
ブラウザーの互換性
No compatibility data found for api.HTMLHyperlinkElementUtils.hostname
.
Check for problems with this page or contribute missing data to mdn/browser-compat-data.
関連情報
HTMLHyperlinkElementUtils
ミックスインに属します。