HTML DOM HashChangeEvent
HashChangeEvent object
An event that occurs when the anchor part of the URL changes, belonging to the HashChangeEvent object.
HashChange event attributes and methods
Properties/Methods | Description |
---|---|
newURL | Returns the document URL after the hash change. |
oldURL | Returns the document URL before the hash change. |
Inherited Properties and Methods
HashChangeEvent inherits all properties and methods from the following objects:
Event Type
These event types belong to the HashChangeEvent object:
Event | Description |
---|---|
onhashchange | This event occurs when the anchor part of the URL changes. |