Currently, I am facing a scenario where I have a button and I need an event to continuously trigger while the button is being hovered. Unfortunately, using the mouseover
method only causes the event to fire once when the cursor initially moves over the button from outside.
btn.addEventListener("mouseover", function(){
console.log("Hello");
});
Ideally, I would like the console log to display continuously as long as the cursor remains hovering over the button.