HTML DOM 해시 변경 이벤트
HashChangeEvent 객체
URL의 앵커 부분이 변경될 때 발생하는 이벤트는 HashChangeEvent 객체에 속합니다.
HashChangeEvent 속성 및 메서드
Property/Method | Description |
---|---|
newURL | Returns the URL of the document, after the hash has been changed |
oldURL | Returns the URL of the document, before the hash was changed |
상속된 속성 및 메서드
HashChangeEvent는 다음에서 모든 속성과 메서드를 상속합니다.
이벤트 유형
다음 이벤트 유형은 HashChangeEvent 개체에 속합니다.
Event | Description |
---|---|
onhashchange | The event occurs when there has been changes to the anchor part of a URL |