【发布时间】:2011-09-03 22:25:35
【问题描述】:
我正在尝试为 Firefox 编写附加组件,但遇到了问题- 当用户右键单击页面时,插件正在使用
向页面主体添加元素document.body.appendChild(myElement);
myElement 有一个按钮,我希望“onClick”它会调用 xmlHttpRequest 并以某种原因处理响应。我尝试使用
注入这两个脚本document.getElementsByTagName('head')[0].appendChild(xmlRequestFunction);
document.getElementsByTagName('head')[0].appendChild(handleResponseFunction);
但由于(我假设)存在安全问题,它不起作用。 我能做什么?
谢谢
【问题讨论】:
标签: firefox firefox-addon firefox4