HashChangeEvent 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 |
❮ События ДОМ ❮ Объекты события