HashChangeEvent object

Represents a change to the portion of the page URL that follows the number sign (#).

HTML5 A vocabulary and associated APIs for HTML and XHTML

 

DOM Information

Inheritance Hierarchy

 Event
   HashChangeEvent

Members

The HashChangeEvent object has these types of members:

Properties

The HashChangeEvent object has these properties.

PropertyDescription

newURL

Retrieves the current URL of the session history entry (HashChangeEvent).

oldURL

Retrieves the previous URL of the session history entry (HashChangeEvent).

 

Standards information

Remarks

This object is only dispatched by Microsoft Edge upon the hashchange event. Internet Explorer instead dispatches a generic Event object.

See also

hashchange
Event

 

 

Show: