Web features explorer

hashchange

Widely available since 2018-01-29
Tags: api

The hashchange event fires when the URL fragment identifier (the part of the URL starting with #) of the current page has changed.

Learning resources on MDN

Browser support (view on caniuse.com)