views:

58

answers:

0

Hello,

I am writing an application in which the user can browse the web with tabs (like a browser).

Using XULRunner/XPCOM/Javascript, I am able to know when a new document is loaded and so display the title of the page in the tab.

My problem is when the user clicks a link that loads a page IN A NEW WINDOW. I don't know how to catch this event and get the content in order to create a new tab to display the page.

Does anybody know how to do that? XPCOM or Javascript? Thanks for your help,

J.