views:

15

answers:

0

Hi,

I develop firefox extension and using the "load" and "DOMContentLoaded" events to raise when document was fully loaded.

My problem, however, is that my 'content' variable is always pointing to the focused tab and not to the new loaded tab (for example, when firefox restarts and load several tabs or if you right-click a link and open it in new tab <-- then it load in the background and does not change the currently visible tab)

How can I get the 'content' variable of the newly created page?

Thanks!!