Create Dynamic Screenshot of any element on a web page - JavaScript code example
Example: Create Dynamic Screenshot of any element on a web page - JavaScript
windwindow.takeScreenShot = function() {
html2canvas(document.getElementById("target"), {
onrendered: function (canvas) {
document.body.appendChild(canvas);
},
width:320,
height:220
});
}ow.takeScreenShot = function() { html2canvas(document.getElementById("target"), { onrendered: function (canvas) { document.body.appendChild(canvas); }, width:320, height:220 });}