Discussion:
Which Event to listen for, when user navigates to an ID within the same document?
Georg Maaß
2010-04-05 17:34:05 UTC
Permalink
Hi,

which event should I register a listener for to get informed, when the
user navigates inside a document via hash links like <a href="#a">A</a>?
Navigation from one document to an other I catch by listening for
StateChange of the progress listener, but the progress listener has
nothing to do, when navigating within the same document, so I need to
listen to something else to get informed, when user navigated to an
other location within the same document.

Should I register for the click event, or is there a more suitable event
for my approach?
Georg Maaß
2010-04-05 18:08:30 UTC
Permalink
Post by Georg Maaß
Hi,
which event should I register a listener for to get informed, when the
user navigates inside a document via hash links like <a href="#a">A</a>?
Navigation from one document to an other I catch by listening for
StateChange of the progress listener, but the progress listener has
nothing to do, when navigating within the same document, so I need to
listen to something else to get informed, when user navigated to an
other location within the same document.
Should I register for the click event, or is there a more suitable event
for my approach?
onLocationChange of the progress listener seems to be what I'm looking for.
Loading...