Location.reload()
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
Location.reload()
메서드는 새로고침 버튼처럼 현재 리소스를 다시 불러옵니다.
새로고침은 SECURITY_ERROR
DOMException
과 함께 거부당할 수 있습니다. 이는 location.reload()
를 호출한 스크립트의 출처와 Location
객체를 소유한 문서의 출처가 다를 때 발생합니다. 더 자세한 정보는 동일 출처 정책 문서를 참고하세요.
구문
js
location.reload();
명세
Specification |
---|
HTML # dom-location-reload-dev |
브라우저 호환성
Report problems with this compatibility data on GitHubdesktop | mobile | server | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
reload |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- Partial support
- Partial support
- No support
- No support
- See implementation notes.
- User must explicitly enable this feature.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
같이 보기
- 메서드가 속한
Location
인터페이스. - 비슷한 메서드:
Location.assign()
,Location.replace()
.