[Project_owners] Run JS function of another window

Brian King brian at mozdev.org
Thu Feb 26 08:47:16 PST 2009


joe ertaba wrote:
> Hi
>
> Here is a sample structure
>
> -Firefox window
> -Ovarlay.xul
> -Overlay.js
>
> -setting window
> -setting.js
> --MyFunction() {...}
>
>
> I want to call MyFunction() from Overlay.js

Get the settings window (xWin say) using nsIWindowWatcher, and then call 
xWin.MyFunction()

- Brian


More information about the Project_owners mailing list