在标签之间切换之前捕获事件 [英] Capture an event before shifting between tabs
问题描述
有什么建议?
Kapil
Tab选项将在选中选项卡之后触发,因此不起作用。
我有同样的问题,只有我想在标签打开之前触发一个事件,以阻止它打开。
您是否尝试在标签栏的标签上设置onclick事件?
I am writing a firefox addon for which 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?
这篇关于在标签之间切换之前捕获事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!