function takeScreenshot() { var screen = document.createElement("canvas"); var width = window.innerWidth; var height = window.innerHeight; screen.width = width; screen.height = height; var ctx = screen.getContext("2d"); ctx.drawImage(document.body, 0, 0, width, height); var img = new Image(); img.src = screen.toDataURL("image/png"); // Save the screenshot to the device's photo gallery navigator.clipboard.writeText(img.src); }
top of page

Profile

Join date: Feb 1, 2023

Overview
Email
329e6533-adff-4769-8b3a-4e9f4fda71e5@offline-members-wix.com
Posts (7)
bottom of page