I'm a newbie in html and javascript. And I'm trying to take a screenshot of my page of html and save it as jpg
or png
file.
I want to take a screenshot of right side(colored with gray) with those drag and drop divs
by pressing Image Save button at the right corner from image.
How can I take a screen shot with html and javascript? I saw some of html2canvas but that is not what I want. I think..
Does anybody have an idea for this?
Thanks,
p.s. if you want the code of my html, I can EDIT
You can only capture images or video frames as a screenshot using Canvas. But if you want to capture particular element on a web page try this library: html2canvas
Here is the code:
Note: Adjust dimensions carefully in drawImage() function