title: Add HTML5 sandbox attribute to an iframe using Javascript
body: <p>I've got an empty iframe and a button:</p>
  
  <p><code>&lt;input type="button" name="B1" value="google"
  onclick="frames['IFrameName1'].location.href='https://www.google.com/'"&gt;</code></p>
  
  <p>But (besides .location.href) i need to set the attribute <code>sandbox="allow-forms allow-scripts    allow-same-origin</code>, because the framed site "deframes". How to set location AND sandbox?</p>