event.clipboardData.setData('image/jpg', "mapImage");
How to use this code get image from clipboard And how to send email
event.clipboardData.setData('image/jpg', "mapImage");
How to use this code get image from clipboard And how to send email
I can't quite remember the javascript method, if it is javascript you're using, but whatever it is, it's most likely the getting of the image is as simple as substituting 'set' with 'get':
var img = event.clipboardData.getData("mapImage");
As for sending an email, I think it goes something like this:
<button onclick="mailto:[email protected]">Send Email</button>