[Project_owners] Event handling

Michael Johnston special.michael at gmail.com
Fri Jun 24 12:14:41 EDT 2005


i use 
   window.addEventListener("load", init, true);

On 6/24/05, Luca Minuti <lithian at tiscalinet.it> wrote:
> Hi,
> 
> I'm developing an extension that every time a page is loaded must do
> some work. The first thing to do is intercept the page load, so I
> write this code:
> 
> function test1()
> {
>   alert('test1');
> }
> 
> top.getBrowser().addEventListener("load", test1, false);
> 
> But the alert will never shown. Any one can help me?
> 
> Regards,
> Luca.
> 
> _______________________________________________
> Project_owners mailing list
> Project_owners at mozdev.org
> http://mozdev.org/mailman/listinfo/project_owners
>


More information about the Project_owners mailing list