title: Set tab title on javascript window.open to show PDF file
body: <p>I am <strong><em>opening a new tab to display a PDF file</em></strong>. I have the PDF file data on a bytearray, base 64.</p>
  
  <p>I am able to get the data, and display it doing this:</p>
  
  <pre><code>downloadFile(strData, name) {
      var newdata = "data:" + "application/pdf" + ";base64," + (strData);
      var newWindow = window.open(newdata, "_blank");
      newWindow.onload = function() { document.title = "My title"; }
  return true;
  }
  </code></pre>
  
  <p>The problem i am having is that i am <strong><em>not able to set the title to the new tab opened.</em></strong></p>
  
  <p>I would like to set a title like "PDF File" or just the name of the document (i am getting the file data and the file name separately and passing it to my downloadFile function.</p>
  
  <p><strong><em>Is there any way to set the title to this tab?</em></strong> Thanks in advance!</p>