Javascript 如何保持弹出窗口的焦点?
我已经创建了几个页面,其内容将显示在弹出窗口中。 我有一个页面,其中定义了3个链接: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
<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。我建议您了解更多关于实际限制的信息。我认为您无法控制其他域上弹出窗口的窗口焦点。。。你能??