问题描述
如何在IE插件中使用Javascript?
将Firefox扩展程序移植到IE7 Addon的最佳方法是什么?
提前致谢。任何想法都将不胜感激。
Hi,
How can I use Javascript in IE Addon?
What is the best to port a firefox extension to IE7 Addon?
Thanks in advance. Any idea would be appreciated.
推荐答案
示例命令栏按钮脚本..
Sample command bar button script..
< script language =" javascript">
<script language="javascript">
var win = external.menuArguments;
var win=external.menuArguments;
var doc = win.document;
var doc=win.document;
alert('Document Title ='+ doc.title);
alert('Document Title = ' + doc.title);
< / script>
</script>
从Firefox移植.....
Porting from Firefox.....
尝试看看...根据需要进行编码更改...使用external.menuArguments对象来引用浏览器窗口。
Try it an see... make coding changes as required... use the external.menuArguments object to reference the browser window.
问候。
这篇关于IE插件中的Javascript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!