title: javascript: IFrame-SRC as new Window?
body: <p>I have a web application in which I have a bunch of iFrame from with source from other tools.
  Now the user should have the possibility to open the iframe content in a new window / new tab, normaly I would simply add something like this:</p>
  
  <pre><code>function onButtonClick() { var src =    $('#iframe').prop('src');
  windows.open(src, "_blank"); }
  </code></pre>
  
  <p>But his would only open a new version of my iFrame context, e.g. if a user open a page in the iframe or clicked on something and javascript changed something within my iframe, the user would be loosing this value..</p>
  
  <p>So, can I make a iframe Content to a new window content without loosing the dynamic state of the website within my iframe?</p>