Re: Navigating URL in a particular tab
veeru <[email protected]> Thu, 1 Apr 2010 07:59:58 -0700 (PDT)
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <[email protected]> |
On Mar 31, 9:15 pm, Srirang Doddihal <[email protected]> wrote: > On Wed, Mar 31, 2010 at 4:34 PM, veeru <[email protected]> wrote: > > Hi, > > > I am developing an extension in javascript. I want to block certain > > web pages, after navigation is completed. I have implemented > > nsIWebProgressListener, and I am checking the URL when I receive > > STATE_STOP, here if I get the blocked site, I want to replace it with > > my custom page. > > > The problem occurs when multiple tabs are opened and when I use > > loadURI of nsIWebNavigation, it loads page in currently selected tab. > > > So my question is that how can we load a page in a particular tab? > > Each tab has a <browser> element which exposes this nsIWebNavigation as a > property. You can use the corresponding nsIWebNavigation to load your custom > page in that tab. This document has information and code snippets on dealing > with the tabbed browser :https://developer.mozilla.org/en/Code_snippets/Tabbed_browser > > > Please help me out. I am stuck here. > > > Thank you. > > _______________________________________________ > > dev-tech-dom mailing list > > [email protected] > >https://lists.mozilla.org/listinfo/dev-tech-dom > > -- > Regards, > Srirang G Doddihal > Brahmana. > > The LIGHT shows the way. > The WISE see it. > The BRAVE walk it. > The PERSISTENT endure and complete it. > > I want to do it all ALONE. Thanks