title: Access/Permission denied in JS creating new window
body: <p>I'm trying to create a new window with HTML returned from a servlet, but I keep getting either </p>
  
  <blockquote>
    <p>SCRIPT5: Access is denied</p>
  </blockquote>
  
  <p>or </p>
  
  <blockquote>
    <p>SCRIPT70: Permission is denied</p>
  </blockquote>
  
  <p>This is code I've used before, not sure why it's not working now.</p>
  
  <p>The javascript function:</p>
  
  <pre><code>function getVerification() {
    var userId = jQuery('#userId').val();
    jQuery.ajax({
      url: 'WorkRequest',
      type: 'GET',
      data: {
        formType: 'getVerificationHTML',
        userId: userId
      },
      dataType: 'html',
      async: false,
      success: function (responseText) {
        alert(responseText);
        var newWin = window.open("Verification", '_blank');
        newWin.document.write(responseText);
        newWin.document.close();
      }, 
      error: function (request, status, error) {
        alert(error);
      }
    });
  }
  </code></pre>
  
  <p>The error is generated on </p>
  
  <p><code>newWin.document.write(responseText);</code></p>
  
  <p>The HTML being returned by the servlet is properly formatted.</p>
  
  <p>I'm using a Tomcat server with IE11 (Edge), if that helps.</p>