<html>
<body>
<h1>iframe sandbox 属性</h1>
<iframe src="demo_iframe_sandbox.htm" sandbox>
<p>您的浏览器不支持 iframe。</p>
</iframe>
<p>"Get date and time"按钮将在内联框架中运行脚本。</p>
<p>由于设置了sandbox属性,内联框架的内容是不允许运行脚本的。</p>
<p>您可以将"allow-scripts"添加到sandbox属性,以允许 JavaScript 运行。</p>
</body>
</html>