From 05b2650717b84d199f6ebd5df8a8f9d1e3b23f3f Mon Sep 17 00:00:00 2001 From: Florian Merz Date: Tue, 23 Feb 2021 15:56:25 +0100 Subject: sync: move --- files/ja/web/api/htmlanchorelement/href/index.html | 58 ++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 files/ja/web/api/htmlanchorelement/href/index.html (limited to 'files/ja/web/api/htmlanchorelement/href') diff --git a/files/ja/web/api/htmlanchorelement/href/index.html b/files/ja/web/api/htmlanchorelement/href/index.html new file mode 100644 index 0000000000..a371695230 --- /dev/null +++ b/files/ja/web/api/htmlanchorelement/href/index.html @@ -0,0 +1,58 @@ +--- +title: HTMLHyperlinkElementUtils.href +slug: Web/API/HTMLHyperlinkElementUtils/href +tags: + - API + - Experimental + - HTMLHyperlinkElementUtils + - Location + - Property + - Reference + - URL API +translation_of: Web/API/HTMLHyperlinkElementUtils/href +--- +

{{ApiRef("URL API")}}

+ +

HTMLHyperlinkElementUtils.href プロパティは、URL 全体を含む {{domxref("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'
+
+ +

仕様

+ + + + + + + + + + + + + + +
仕様状態コメント
{{SpecName('HTML WHATWG', '#dom-hyperlink-href', 'HTMLHyperlinkElementUtils.href')}}{{Spec2('HTML WHATWG')}}初期定義
+ +

ブラウザーの互換性

+ + + +

{{Compat("api.HTMLHyperlinkElementUtils.href")}}

+ +

関連情報

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