This is a DOM question not XPCOM, but you just need to listen for the
'onselect' event.
<tab id="foo" onselect="selectionChange( this );"/>
If you are adding to an existing app tabs changes (Firefox?) add an
'onselect' event handler rather than the above.
N
Martin Kremer wrote:
Hi,
first of all, thank you for the help with the content problem, I solved id
by using a WebProgressListener.
Now I have another question:
Is there any way for my extension to get notified of a tab change, i.e. the
user has more than one tab open and switches between them?
I think I could use some getfocused or getactivewindow functions, but this
requires me to poll every second or so, which I think is a bad idea.
Thanks in advance,
Martin
_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom