Re: Which Event to listen for, when user navigates to an ID within the same document?

Georg Maaß <[email protected]> Mon, 05 Apr 2010 20:08:30 +0200
Newsgroups gmane.comp.mozilla.devel.dom
Message-ID <[email protected]>
Georg Maaß wrote:
> 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.
_______________________________________________
dev-tech-dom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-dom