Skip to content

vijayowork/screenshot-of-div-using-javascript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

screenshot-of-div-using-javascript

You can get screenshot of div using DOM Element using Javascript

domtoimage.toPng(imageCaptures) .then(function(dataUrl) { console.log(dataUrl); //window.open(dataUrl); var img = new Image(); img.src = dataUrl; document.getElementById("capture-theimages").appendChild(img); }) .catch(function(error) { console.error('oops, something went wrong!', error); });

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages