Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/79.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 如何保持弹出窗口的焦点?_Javascript_Html_Popup - Fatal编程技术网

Javascript 如何保持弹出窗口的焦点?

Javascript 如何保持弹出窗口的焦点?,javascript,html,popup,Javascript,Html,Popup,我已经创建了几个页面,其内容将显示在弹出窗口中。 我有一个页面,其中定义了3个链接: <a href = "page1.htm", onClick="window.open(this.href,'content','scrollbars=yes, resizable=yes, left=70,top=20, width=900, height=900,innerWidth=900, innerHeight=900'); return false;">Page1</a>&l

我已经创建了几个页面,其内容将显示在弹出窗口中。 我有一个页面,其中定义了3个链接:

<a href = "page1.htm", onClick="window.open(this.href,'content','scrollbars=yes, resizable=yes, left=70,top=20, width=900, height=900,innerWidth=900, innerHeight=900'); return false;">Page1</a><br />
<a href = "page2.htm", onclick="window.open(this.href,'content','scrollbars=yes, resizable=yes, left=70, top=20, width=900, height=900,innerWidth=900, innerHeight=900'); return false;">Page2</a><br />
<a href = "page3.htm", onClick="window.open(this.href, 'content',' scrollbars=yes, resizable=yes, left=70, top=20, width=900, height=900, innerHeight=900, innerWidth=900'); return false;">Page3</a>


单击链接时,我会显示一个弹出窗口。但当点击另一个链接时,弹出窗口被最小化。我需要保持它打开,并显示其他页面的适当内容

不幸的是,我不能使用任何
javascript
函数来
focus
我的弹出窗口,因为我需要将链接放到另一个供应商的网站上,这只允许复制简单的
html
,所以当其他人单击链接时,弹出窗口将打开相应的内容


有没有办法用我目前拥有的东西来实现这一点

你说的简单html是什么意思?您已经使用了内嵌JavaScript。可以吗?HTML文件中的
标记呢?简单HTML就是这种情况。内联javascript应该可以,即使您的供应商只允许html文件,您仍然可以在其中包含客户端JS。我建议您了解更多关于实际限制的信息。我认为您无法控制其他域上弹出窗口的窗口焦点。。。你能??