title: Setting the page title of Chrome window.open
body: <p>I have some JavaScript that is being used to open a new window and display a PDF file. This is working fine apart from the title of the new window being open. I am using the window.open function and I have set the title of the page using the document.write function (see code below). The code works fine for FF and IE but for some reason Google Chrome just displays 'Untitled - Google Chrome'</p>
  
  <pre><code>&lt;body&gt;
      &lt;a href="javascript:openNewWindow();"&gt;Click Here&lt;/a&gt;
  
      &lt;script type="text/javascript"&gt;
          function openNewWindow()
          {
              var pdfWindow = window.open('', "window",
                  'resizable=1,scrollbars=0,width=800,height=600');
  
              pdfWindow.document.write('&lt;html&gt;&lt;head&gt;&lt;title&gt;Window Title&lt;/title&gt;&lt;/head&gt;');
  
              pdfWindow.document
                      .write('&lt;body&gt;&lt;iframe src="" id="ifrm" name="ifrm" width="100%" height="100%"&gt;&lt;/iframe&gt;');
  
              pdfWindow.document.write('&lt;/body&gt;&lt;/html&gt;');
  
              pdfWindow.document.close();
          }
      &lt;/script&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>Note: I have also tried adding - pdfWindow.document.title="Title"; - to the JavaScript, with no luck.</p>
  
  <p>Is there anything specific that is required for Chrome or am I just missing something??</p>