javascript

Taking a Picture of a Web Page

A brief technical note outlining the basic approach and applicable steps for Capturing a Web Page.

Add the Html2Canvas library and jQuery library to your site, then you can capture the screenshot with the code below.


html2canvas(document.body, {
   allowTaint : true,
   logging : false,
   taintTest : false,
   onrendered : function(canvas) {
    //ekran görüntüsünü base64 olarak consola yazdırır
    console.log(canvas.toDataURL());
    });
   }
  });