lqxue

常用链接

统计

book

tools

最新评论

firefox extension 中 call click 事件


在chomal.manifest里如下设定,注意黄色部分,很关键
content     sample    chrome/content/  xpcnativewrappers=no
overlay chrome://browser/content/browser.xul chrome://sample/content/sample.xul

调用方式:
window.content.document.getElementById('sssddd').onclick();


参考如下连接

http://developer.mozilla.org/En/Safely_accessing_content_DOM_from_chrome

xpcnativewrappers

http://developer.mozilla.org/en/Chrome_Registration

posted on 2008-09-17 13:44 lqx 阅读(251) 评论(0)  编辑  收藏 所属分类: htmlweb


只有注册用户登录后才能发表评论。


网站导航: