hashchange
Widely available
The hashchange
event fires when the URL fragment identifier (the part of the URL starting with #
) of the current page has changed.
To learn more, see
HashChangeEvent,
HashChangeEvent: HashChangeEvent() constructor,
HashChangeEvent: newURL property,
HashChangeEvent: oldURL property,
Window: hashchange event at MDN.
Compatibility (view on caniuse.com)
- Chrome 16 Released on 2011-12-13
- Chrome Android 18 Released on 2012-06-27
- Edge 12 Released on 2015-07-29
- Firefox 11 Released on 2012-03-13
- Firefox for Android 14 Released on 2012-06-26
- Safari 6 Released on 2012-07-25
- Safari on iOS 6 Released on 2012-09-10
Specifications
- HTML Standard (#the-hashchangeevent-interface), from HTML Workstream (WHATWG).