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());
});
}
});