title: How can I set the default filename for the Chrome print dialog from within an iframe?
body: <p>I'm working on a project where my part of the project is a dashboard within an iframe. I have a request to make <em>just</em> the iframe I'm working on exportable as a PDF (that is, only show the iframe contents and not the wrapper stuff around it). I've gotten that to work using some jQuery, but 
  I'm now stumped at setting a default filename for saving as PDF. <a href="https://stackoverflow.com/a/4467618/3854235">This SO answer</a> was helpful (setting document.title works when the page is <em>not</em> in an iframe), but it doesn't work when the export button is clicked when it is in the iframe view. Here's an example of what I've tried:</p>
  
  <pre><code>$('#export-button').click(function() {
      $('#iframe-contents').show();
      document.title = 'default_filename';
      window.print();
  });
  </code></pre>
  
  <p>Does anyone know how to set the default filename in the Chrome print dialog when calling on <code>window.print()</code> from within an iframe?</p>