Re: handle DOM event in NPAPI plugin
Benjamin Smedberg <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.plugins |
|---|---|
| Message-ID | <[email protected]> |
On 6/29/2011 3:03 PM, Sue wrote: > Hi, > > I am a mozilla newbie and a windows developer. I wrote a NPAPI > plugin and I need to catch and handle the DOM event, such as > BeforeNavigate2, DownloadComplete event. Similar to providing > handlers to the windows WebBrowserEvents2. I also need an FF web > browser control to navigate to some URL. Can someone tell me how to > do > this in NPAPI plugin? Thanks. I don't recognize those DOM events. In any case, it would help if you could explain what you're actually trying to accomplish. it doesn't sound like an NPAPI plugin is the right tool for the job, but it's hard to say without knowing more. NPAPI plugins act entirely within the context of a single webpage, so they wouldn't be aware of anything like navigation from one page to another. NPN_GetURL/NPN_PostURL can be used to cause browser navigation, as long as you specify a "target". --BDS