防止html页面打开一个新窗口 [英] prevent html page from open a new window

查看:247
本文介绍了防止html页面打开一个新窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个基于HTML的应用程序,有时我的HTML应用程序需要在iframe中打开另一个URL。
问题是iframe中的第三方网址也打开了一个新窗口,内容相同,网址相同。
所以我怎么能阻止它?

I have a html based application and sometimes my html app needs to open another url in iframe. the problem is that the third party url in the iframe open a new window too with the same content, the same url. so how can i prevent it?

推荐答案

这看起来像是第三方页面中的iframe breakoutscript。关于这个问题的解决方案的一些链接。

This seems like an iframe breakoutscript in the thirdparty page. A few links about a solution to this problem.

http://stuntsnippets.com/prevent-iframe-breakout/

http://www.zimbio.com/Web+Design/articles/1110/How+prevent+iFrame+breakaway

如何防止IFRAME重定向顶级窗口

这篇关于防止html页面打开一个新窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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