--- title: HTMLHyperlinkElementUtils.href slug: Web/API/HTMLAnchorElement/href tags: - API - Experimental - HTMLHyperlinkElementUtils - Location - Property - Reference translation_of: Web/API/HTMLHyperlinkElementUtils/href original_slug: Web/API/HTMLHyperlinkElementUtils/href ---
HTMLHyperlinkElementUtils.href
속성은 온전한 URL을 값으로 가지는 {{domxref("USVString")}}입니다.
// Lets imagine an <a id="myAnchor" href="https://developer.mozilla.org/en-US/HTMLHyperlinkElementUtils/href"> element is in the document var anchor = document.getElementById("myAnchor"); var result = anchor.href; // Returns: 'https://developer.mozilla.org/en-US/HTMLHyperlinkElementUtils/href'
Specification | Status | Comment |
---|---|---|
{{SpecName('HTML WHATWG', '#dom-hyperlink-href', 'HTMLHyperlinkElementUtils.href')}} | {{Spec2('HTML WHATWG')}} | Initial definition. |
{{Compat("api.HTMLHyperlinkElementUtils.href")}}