My goal is to save an image temporarily in "localStorage" when the mouse hovers over it, using JavaScript. Once saved, I then want to send this image to the server via AJAX.
I have two main questions: 1) How can I save the image to localStorage upon hovering over it? 2) What is the best way to transfer the saved image from localStorage to the server?
I apologize for any confusion in my initial question.