--- 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 ---
{{ApiRef("URL API")}}

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")}}

같이 보기