防止iframe操作关闭Chrome的popup.html [英] Prevent popup.html of Chrome from being closed by iframe action

查看:268
本文介绍了防止iframe操作关闭Chrome的popup.html的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的扩展程序的popup.html中嵌入了一个iframe。在这个iframe中,用户必须通过点击一个按钮来提交。这会打开一个新选项卡,导致我的popup.html被关闭。



如何强制popup.html保持活动状态?



iframe处理更多信息。



我的popup.html: http:// pastebin。 com / QftvfQ8c

解决方案

您无法强制弹出窗口保持打开状态。

I embedded an iframe in my popup.html of my extension. Inside this iframe the use has to submit by clicking on a button. This opens a new tab which causes my popup.html to be closed.

How can I force the popup.html to remain active?

This is necessary as the iframe processes with more information.

My popup.html: http://pastebin.com/QftvfQ8c

解决方案

You can not force a popup to remain open.

这篇关于防止iframe操作关闭Chrome的popup.html的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆