是否可以从 Firefox 中触发用户定义的功能?
我试过这个,没有运气:
var window=window.QueryInterface(Components.interfaces.nsIInterfaceRequestor).
getInterface(Components.interfaces.nsIWebNavigation).
QueryInterface(Components.interfaces.nsIDocShellTreeItem).
rootTreeItem.QueryInterface(Components.interfaces.nsIInterfaceRequestor).
getInterface(Components.interfaces.nsIDOMWindow).
getBrowser().
selectedBrowser.
contentWindow;
// user function defined in frame
window.frames[1].someFunction(arg)