在HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt\访问Test主页
中写入(菜单右键功能)
值为:
名称 类型 数据
(默认) REG_SZ C:\Program Files\Test.htm
contexts REG_DWORD 0x00000001(1)
然后在IE网页右键菜单点击 访问Test主页
IE6正常弹出窗口在最前面,但是IE8则弹出的窗口 会 先显示,显示完后,自动置后,
即,在IE8窗口A中右键点击,访问Test主页,弹出IE8窗口B,显示在IE8窗口A后面了,
Test.htm
内容为:
<SCRIPT LANGUAGE="JavaScript">
window.open('http://www.Test.com/index.php?view=booklet&title='+encodeURIComponent(external.menuArguments.document.title)+'&url='+encodeURIComponent(external.menuArguments.location.href));
</script>
如何让弹出的窗口现在最前呢?
中写入(菜单右键功能)
值为:
名称 类型 数据
(默认) REG_SZ C:\Program Files\Test.htm
contexts REG_DWORD 0x00000001(1)
然后在IE网页右键菜单点击 访问Test主页
IE6正常弹出窗口在最前面,但是IE8则弹出的窗口 会 先显示,显示完后,自动置后,
即,在IE8窗口A中右键点击,访问Test主页,弹出IE8窗口B,显示在IE8窗口A后面了,
Test.htm
内容为:
<SCRIPT LANGUAGE="JavaScript">
window.open('http://www.Test.com/index.php?view=booklet&title='+encodeURIComponent(external.menuArguments.document.title)+'&url='+encodeURIComponent(external.menuArguments.location.href));
</script>
如何让弹出的窗口现在最前呢?
<SCRIPT LANGUAGE="JavaScript">
var a=window.open('http://www.Test.com/index.php?view=booklet&title='+encodeURIComponent(external.menuArguments.document.title)+'&url='+encodeURIComponent(external.menuArguments.location.href));
a.focus();
</script>