title: I Can not open created PDF on new tab genered by PDFMake.js in Internet Exploer
body: <p>I am working on a projected developed using WEB API2 and AngularJS. I am created report in PDF using pdfmake.js. It works fine for Firefox. But for security reason, I like to restrict the user to use Internet Explorer. Because I need to identify the user terminal using MAC Address.</p>
  
  <p>So I commanded users to use Internet Explorer. In Internet explorer, When I want to open the PDF new tab, PDFMake.js getting error on following line:</p>
  
  <pre><code>Document.prototype.open = function(message) {
      // we have to open the window immediately and store the reference
      // otherwise popup blockers will stop us
      var win = window.open('', '_blank');
  
      try {
          this.getDataUrl(function(result) {
              win.location.href = result;
          });
      } catch(e) {
          win.close();
          throw e;
      }
  };
  </code></pre>
  
  <p>The line <code>win.location.href = result;</code> generating error : </p>
  
  <blockquote>
    <p>Unhandled exception at line 110, column 8 in <a href="http://localhost:19884/Scripts/pdfmake/pdfmake.js" rel="nofollow">http://localhost:19884/Scripts/pdfmake/pdfmake.js</a>
    0x8007007a - JavaScript runtime error: unknown exception</p>
  </blockquote>
  
  <p><a href="http://i.stack.imgur.com/bEHeQ.png" rel="nofollow">Image of the error message</a></p>
  
  <p>I googled and didn't get any solution of this problem.</p>