title: How to clear an iframe of all content?
body: <p>I'm using an iframe and dynmically loading its content from an API. I'm trying to find a way to clear the iframe of all of it's content without changeing the src attribute. E.G.</p>
  
  <pre><code>&lt;iframe class="bla" src="//blabla"&gt;
    &lt;html&gt;
       Lots of HTML rendered
    &lt;/html&gt;
  &lt;/iframe&gt;
  </code></pre>
  
  <p>Needs to become:</p>
  
  <pre><code>&lt;iframe class="bla" src="//blabla"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>Very important that I keep all of the iframe attributes.
  Is there a way to do this with javascript or jquery?</p>