This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Section: http://www.whatwg.org/specs/web-apps/current-work/#events Comment: add location change event Posted from: 93.206.136.179
When several bookmarks of a page are stored, all pointing to different anchors in that same document, it's currently impossible to get a notion about one of the bookmarks having been selected. I suggest to add an onchange event to the window.location object so that changes to the hash value may be recognized.
(In reply to comment #1) > When several bookmarks of a page are stored, all pointing to different anchors > in that same document, it's currently impossible to get a notion about one of > the bookmarks having been selected. > > I suggest to add an onchange event to the window.location object so that > changes to the hash value may be recognized. The event you are asking for already exists; it's called "hashchange": http://dev.w3.org/html5/spec/Overview.html#event-hashchange
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document: http://dev.w3.org/html5/decision-policy/decision-policy.html Status: Accepted Change Description: no spec change Rationale: Please reopen this if 'hashchange' doesn't do what you want.
Excellent! (Sorry for my late reply. E-mails from this domain seem to have landed in my Junk folder. Found them now.)