Answer the question
In order to leave comments, you need to log in
How to change cursor on hover in JavaScript?
Let's say I created an image using new Image() and I need the cursor to change to pointer when hovering over this image. I tried to do like this:
var car = new Image();
car.src = "img/Машина.png";
car.style.cursor = "pointer";
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question