简体   繁体   English

等待一段时间后在弹出式浏览器或标签浏览器之间切换

[英]Switch between popup or tab browser after time

I want to display two different sites/Urls on a TV Display(Browser Chrome) 我想在电视显示器(浏览器Chrome)上显示两个不同的网站/网址

In case of security reasons, I can not put the content of A for eg in Site B. 出于安全原因,我不能将A的内容放到例如站点B中。

My approach is now, to open website A with a button 'Start Demo'. 现在,我的方法是使用“开始演示”按钮打开网站A。

Site B is the first and C is the second Website. 网站B是第一个网站,网站C是第二个网站。 Both sould run in fullscreen Mode. 两者都以全屏模式运行。

If I press the button, the should switch Site B and C after 20 seconds. 如果按此按钮,则20秒后应切换站点B和C。 Is there any example out there? 有什么例子吗? Is it better, to view and control the 2 Sites in a popup? 在弹出窗口中查看和控制2个站点是否更好?

Thank you 谢谢

var newWin = window.open();

newWin.focus(); //focuses on new window

window.focus(); //focuses on main window

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM