The HashChangeEvent Object handles events that occur when the anchor of an URL is changed.
Event | Occurs When |
---|---|
onhashchange | There has been changes to the anchor part of a URL |
Property | Returns |
---|---|
newURL | The URL of the document, after the hash has been changed |
oldURL | The URL of the document, before the hash was changed |
The HashChangeEvent inherits all the properties and methods from:
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!