aboutsummaryrefslogtreecommitdiff
path: root/files/ko/web/api/location/reload/index.html
blob: 4cd050e02492d87c9536bf85a6abfdd28122f717 (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
53
54
55
56
---
title: Location.reload()
slug: Web/API/Location/reload
tags:
  - API
  - HTML DOM
  - Location
  - Method
  - Reference
translation_of: Web/API/Location/reload
---
<div>{{ APIRef("HTML DOM") }}</div>

<p><span class="seoSummary"><code><strong>Location.reload()</strong></code> 메서드는 새로고침 버튼처럼 현재 리소스를 다시 불러옵니다.</span></p>

<p>새로고침은 <code>SECURITY_ERROR</code> {{domxref("DOMException")}}과 함께 거부당할 수 있습니다. 이는 <code>location.reload()</code>를 호출한 스크립트의 {{glossary("origin", "출처")}}{{domxref("Location")}} 객체를 소유한 문서의 출처가 다를 때 발생합니다. 더 자세한 정보는 <a href="/ko/docs/Web/Security/Same-origin_policy">동일 출처 정책</a> 문서를 참고하세요.</p>

<h2 id="구문">구문</h2>

<pre class="syntaxbox"><em>location</em>.reload();
</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', "history.html#dom-location-reload", "Location.reload()")}}</td>
   <td>{{Spec2('HTML WHATWG')}}</td>
   <td>No change from {{SpecName("HTML5 W3C")}}.</td>
  </tr>
  <tr>
   <td>{{SpecName('HTML5 W3C', "browsers.html#dom-location-reload", "Location.reload()")}}</td>
   <td>{{Spec2('HTML5 W3C')}}</td>
   <td>Initial definition.</td>
  </tr>
 </tbody>
</table>

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



<p>{{Compat("api.Location.reload")}}</p>

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

<ul>
 <li>메서드가 속한 {{domxref("Location")}} 인터페이스.</li>
 <li>비슷한 메서드: {{domxref("Location.assign()")}}, {{domxref("Location.replace()")}}.</li>
</ul>