[英]How to load a page in iframe with JavaScript disabled?
I searched the internet about this subject but I didn't find anything about it. 我在互联网上搜索了有关此主题的内容,但未找到任何相关信息。 Please guide me how is it possible? 请指导我怎么可能?
For example: 例如:
<iframe id="iframe1"
src="Source Link"
width="890"
height="640"
frameborder="0"
scrolling="no"
allowfullscreen></iframe>
You are looking for sandbox
attribute. 您正在寻找sandbox
属性。
In your particular case use: 在您的特定情况下,请使用:
<iframe id="iframe1"
src="Source Link"
width="890"
height="640"
frameborder="0"
scrolling="no"
allowfullscreen
sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-top-navigation"></iframe>
This re-enables all iframe
features except for Javascript. 这会重新启用除Javascript之外的所有iframe
功能。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.