我如何在html页面中停止拨号

时间:2017-07-23 09:29:22

标签: javascript jquery html

我正在尝试制作包含广告的html页面,这些广告会提示下方的图片和图片,这样可以重定向并丢失原始页面和丢失用户

Example of dialoge

我想停止此页面上的任何提示或任何标记

我的代码是非常简单的带iframe的html页面

   <iframe src="https://go.pub2srv.com/afu.php?id=1326365" height="500" width="900"></iframe>

由于

1 个答案:

答案 0 :(得分:0)

您可以通过向sandbox元素添加<iframe>属性来阻止iframe运行Javascript。以下是它的外观:

 <iframe src="https://go.pub2srv.com/afu.php?id=1326365" height="500" width="900" sandbox=""></iframe>

您可以参考此页面了解其工作原理:https://www.w3schools.com/tags/att_iframe_sandbox.asp

当然,这是一个完美的解决方案,因为iframe可能需要一些权限,在这种情况下,您可以添加特定广告所需的特定权限。