我有一个空的iframe和一个按钮:
<input type="button" name="B1" value="google"
onclick="frames['IFrameName1'].location.href='https://www.google.com/'">
但是(除了.location.href之外),我需要设置属性sandbox="allow-forms allow-scripts allow-same-origin
,因为被嵌入的网站会“解框”。如何同时设置位置和沙盒?