HTML DOM HashChangeEvent

❮ DOM Events ❮ Event Objects


The HashChangeEvent Object

The HashChangeEvent Object handles events that occur when the anchor of an URL is changed.

HahChange Events

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

HashChangeEvent Properties

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

Inherited Properties and Methods

The HashChangeEvent inherits all the properties and methods from:

The Event Object


❮ DOM Events ❮ Event Objects

Copyright 1999-2023 by Refsnes Data. All Rights Reserved.