aboutsummaryrefslogtreecommitdiff
path: root/files/ko/web/api/htmlanchorelement/href/index.html
blob: ec1e854a731e4ee4265aaf812e3fda06f6d6b3c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
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
---
<div>{{ApiRef("URL API")}}</div>

<p><strong><code>HTMLHyperlinkElementUtils.href</code></strong> 속성은 온전한 URL을 값으로 가지는 {{domxref("USVString")}}입니다.</p>

<h2 id="예제">예제</h2>

<pre class="brush: js">// Lets imagine an &lt;a id="myAnchor" href="https://developer.mozilla.org/en-US/HTMLHyperlinkElementUtils/href"&gt; element is in the document
var anchor = document.getElementById("myAnchor");
var result = anchor.href; // Returns: 'https://developer.mozilla.org/en-US/HTMLHyperlinkElementUtils/href'
</pre>

<h2 id="명세">명세</h2>

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Status</th>
   <th scope="col">Comment</th>
  </tr>
  <tr>
   <td>{{SpecName('HTML WHATWG', '#dom-hyperlink-href', 'HTMLHyperlinkElementUtils.href')}}</td>
   <td>{{Spec2('HTML WHATWG')}}</td>
   <td>Initial definition.</td>
  </tr>
 </tbody>
</table>

<h2 id="브라우저_호환성">브라우저 호환성</h2>



<p>{{Compat("api.HTMLHyperlinkElementUtils.href")}}</p>

<h2 id="같이_보기">같이 보기</h2>

<ul>
 <li>{{domxref("HTMLHyperlinkElementUtils")}}</li>
</ul>