Attaching an event handler to a new onhashchange event enables the page to detect when the hash has changed and an AJAX navigation has occurred. See Introducing AJAX Navigations for a more robust example.
<body onhashchange="HashChangeHandler();"> ... </body>
- Set the
location.hash (bookmark) property.
- Navigate to the same page with a different bookmark.
The pEvtObj parameter is required for the following interfaces:
There are no standards that apply here.
Event handler parameters
- pEvtObj [in]
- Type: ****IHTMLEventObj****
Microsoft Developer Network: [Windows Internet Explorer API reference Article]