Web features explorer

hashchange

Widely available
Tags: api

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)