HTML Intro

HTML Intro Quiz

HTML Intro Exercise

HTML Basics

HTML Basic Quiz

HTML Basic Exercise

HTML Advance

HTML Advance Quiz

HTML Advance Exercise

HTML Tags List

HTML Global Attributes

HTML Attributes


HTML onhashchange Attribute

HTML onhashchange Attribute



The onhashchange attribute fires when there have been changes to the anchor part of the current URL. For invoking this event, we have to change the anchor part by location.hash or location.href.


Used With:-


Elements Event
body onhashchange




Its syntax is:- < element onhashchange="your_script" >

Code Explanation

All Tutorials related to HTML Attributes

All Sections related to HTML