title: How open new window with base64 PDF content?
body: <p>I want open new window (with jQuery) and show PDF from base64 content. When I make normal link:</p>
  
  <pre><code>&lt;a href=\"data:application/pdf;base64,'.$answer-&gt;shipping_label_content.'\" target=\"blank\"&gt;Show PDF&lt;/a&gt;
  </code></pre>
  
  <p>It's all good. But I want automatic open new window with this content and I don't know how :-/</p>
  
  <pre><code>var window = window.open();
  var html = "data:application/pdf;base64,'.$answer-&gt;shipping_label_content.'";
  
  $(window.document.body).html(html);
  </code></pre>