I'm curious to know if there is a method to capture an image from a specific part of a website and store it on the computer. Is this achievable?
HTML
<div id="red" color="red" width="100px" height="100px"></div>
<div id="green" color="green" width="100px" height="100px"></div>
<div id="blue" color="blue" width="100px" height="100px"></div>
For instance, let's say I have a webpage with three divs positioned side by side, and I want to capture only the green div and save it as a jpeg file. Is there a way to achieve this using JQuery or Javascript?