[Project_owners] How to get the main browser window object in option dialog?

Eric H. Jung grimholtz at yahoo.com
Sat Feb 11 08:35:04 EST 2006


Components.classes["@mozilla.org/appshell/window-mediator;1"]       
  .getService(Components.interfaces.nsIWindowMediator)
  .getMostRecentWindow("navigator:browser");

--- Net One <netone at gmail.com> wrote:

> What is the function for getting the main browser window object in
> the
> option dialog?
> 
> I've used that function before but just can't remember. And I've also
> searched through Google without result. :(
> 
> Thanks!
> 
> --
> Best regard,
> NetOne, netone at gmail.com
> > _______________________________________________
> Project_owners mailing list
> Project_owners at mozdev.org
> http://mozdev.org/mailman/listinfo/project_owners
> 



More information about the Project_owners mailing list