HTMLHyperlinkElementUtils.href
HTMLHyperlinkElementUtils.href
プロパティは、URL 全体を含む USVString
です。
構文
string = object.href; object.href = string;
例
// <a id="myAnchor" href="https://developer.mozilla.org/en-US/HTMLHyperlinkElementUtils/href"> 要素がドキュメントにあるとします
var anchor = document.getElementById("myAnchor");
var result = anchor.href; // 戻り値: 'https://developer.mozilla.org/en-US/HTMLHyperlinkElementUtils/href'
仕様
仕様 | 状態 | コメント |
---|---|---|
HTML Living Standard HTMLHyperlinkElementUtils.href の定義 |
現行の標準 | 初期定義 |
ブラウザーの互換性
No compatibility data found for api.HTMLHyperlinkElementUtils.href
.
Check for problems with this page or contribute missing data to mdn/browser-compat-data.
関連情報
HTMLHyperlinkElementUtils
ミックスインに属します。