如何在禁用JavaScript的情况下在iframe中加载页面?

如何在禁用JavaScript的情况下在iframe中加载页面?,javascript,html,iframe,Javascript,Html,Iframe,我在网上搜索了这个主题,但没有找到任何相关内容。请告诉我怎么可能 例如: <iframe id="iframe1" src="Source Link" width="890" height="640" frameborder="0" scrolling="no" allowfullscreen></iframe> 您正在查找属性 在您的特定情况下,请使用: <ifr

我在网上搜索了这个主题,但没有找到任何相关内容。请告诉我怎么可能

例如:

<iframe id="iframe1"
        src="Source Link"
        width="890"
        height="640"
        frameborder="0"
        scrolling="no"
        allowfullscreen></iframe>

您正在查找属性


在您的特定情况下,请使用:

<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>

这将重新启用除Javascript之外的所有
iframe
功能。

您正在查找属性


在您的特定情况下,请使用:

<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>


这将重新启用除Javascript之外的所有
iframe
功能。

那么您想在
iframe
中打开一个禁用了Javascript的页面吗?@Eric我想在我的网页上使用iframe,我想在禁用Javascript的同时加载这个iframe。所以您想在
iframe
中打开一个已经禁用Javascript的页面禁用Javascript?@Eric我想在我的网页上使用iframe,我想加载这个iframe,同时禁用它的Javascript。有人指导我在iframe上制作非活动广告,你可以为它禁用Javascript,现在我想知道如果这个iframe使用反Adblock脚本,我该怎么办?@Ashkan That脚本不会在该
iframe
中运行,因为Javascript被禁用。我使用的这个iframe是一个实时流,上面有一些广告。禁用javascript后,我们可以停止广告,但他们使用了反Adblock脚本,直到有人禁用javascript后,他们才能观看直播!有办法吗@Eric有人指导我在iframe上制作非活动广告,你可以为它禁用Javascript,现在我想知道如果这个iframe使用了反Adblock脚本,我该怎么办?@Ashkan该脚本不会在该
iframe
中运行,因为Javascript被禁用。我使用的这个iframe是一个实时流上面有一些广告。禁用javascript后,我们可以停止广告,但他们使用了反Adblock脚本,直到有人禁用javascript后,他们才能观看直播!有办法吗@埃里克