目录

HTML DOM HashChangeEvent

❮ DOM 事件 ❮ 事件对象


HashChangeEvent 对象

HashChangeEvent 对象处理 URL 锚点更改时发生的事件。

哈改变事件

Event Occurs When
onhashchange There has been changes to the anchor part of a URL

HashChangeEvent 属性

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

继承的属性和方法

HashChangeEvent 继承了以下所有属性和方法:

事件对象


❮ DOM 事件 ❮ 事件对象