开发者

Capture an event before shifting between tabs

I am writing a firefox addon for w开发者_如何学Chich I need to capture any event (if I can) that is triggered just before moving out from one tab to another. I tried onLocationChange method in the ProgressListener, but that captures the event only after the user has landed to the second tab. I need an event that can capture this activity just before the user is about to move out from one tab to another.

Any suggestions?

Kapil


TabSelect will fire after the tab has been selected, so that won't work.

I have this same problem, only I'd like to trigger an event before a tab opens, so as to stop it opening.

Have you tried setting an onclick event on the tabs in the tab bar?


That would be TabSelect.

https://developer.mozilla.org/en/Code_snippets/Tabbed_browser

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜