const screenshotTarget = document.body;
html2canvas(screenshotTarget).then((canvas) => { const base64image = canvas.toDataURL("image/png"); window.location.href = base64image; });
https://hackernoon.com/how-to-take-screenshots-in-the-browser-using-javascript-l92k3xq7
No dependencies set.
The note is not visible to the blocked user.
const screenshotTarget = document.body;
html2canvas(screenshotTarget).then((canvas) => {
const base64image = canvas.toDataURL("image/png");
window.location.href = base64image;
});
https://hackernoon.com/how-to-take-screenshots-in-the-browser-using-javascript-l92k3xq7