<HTML>
<head>
<meta http-equiv="Content-Type" content="text/html;charset = gb2312" />
</head>
<body>
<script type="text/javascript" language="javascript">
var sel;
function OnContextMenu()
{
var parentwin = external.menuArguments;
if (external.menuArguments)
{
var parentwin = external.menuArguments;
if (parentwin.document.selection)
{
sel = parentwin.document.selection.createRange().text;
//external.menuArguments.window.navigate("http://www.iReadHome.com/Book/Search?key="+sel);
window.open("http://www.iReadHome.com/Book/Search?key="+sel)
}
}
}
OnContextMenu();
</script>
</body>
</HTML>这个OPEN 了一个页面 为什么新页面没有在最前面 没有获取焦点 要自己去点开呢?
<head>
<meta http-equiv="Content-Type" content="text/html;charset = gb2312" />
</head>
<body>
<script type="text/javascript" language="javascript">
var sel;
function OnContextMenu()
{
var parentwin = external.menuArguments;
if (external.menuArguments)
{
var parentwin = external.menuArguments;
if (parentwin.document.selection)
{
sel = parentwin.document.selection.createRange().text;
//external.menuArguments.window.navigate("http://www.iReadHome.com/Book/Search?key="+sel);
window.open("http://www.iReadHome.com/Book/Search?key="+sel)
}
}
}
OnContextMenu();
</script>
</body>
</HTML>这个OPEN 了一个页面 为什么新页面没有在最前面 没有获取焦点 要自己去点开呢?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货