web-feature: hashchange

baseline logo Widely available

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