title: Capturing Div contents to image using HTML2Canvas not returing anything
body: <p>I am using this code to capture an image displayed within a Div using html2canvas:</p>
  
  <pre><code>$(document).ready(function () {
              $('#&lt;%= btnCapture.ClientID %&gt;').click(function () {
                  html2canvas($('#chart_div'), {
                      onrendered: function (canvas) {
                          var img = canvas.toDataURL();
                          window.open(img);
                      }
                  });
              });
          });
  </code></pre>
  
  <p>The code works and opens a new browser window with URL something in base64, but the image is not visible.</p>
  
  <p>Why the image is not visible?</p>