This attribute works when there has been changes to the anchor part. The anchor part starts with ‘#’ symbol of the current URL.
<element onhashchange = "script">
Attribute Value: This attribute contains single value script and it runs when onhashchange event attribute triggered. This attribute is associated with <body> tag only.
Supported Browsers: The browser supported by onhashchange event attribute are listed below:
- Chrome 5.0
- Internet Explorer 8.0
- Firefox 3.6
- Safari 5.0
- Opera 10.6