+ 6
Can the click command be changed to hover in JavaScript? btn.addEventListener("click", myFunction);
5 Respostas
+ 3
This function may be work for computer. I want hover work for mobile phones instead of click. Thanks.
+ 3
The thing is you cant hover in mobile phones, because you would have to click itđ€·...but still "onmouseover" is the keyword to use.
+ 2
I am sure there's a hover for JavaScript functions. Here's an example of it.
https://code.sololearn.com/WZ3U9j5I98i6/?ref=app
0
btn.addEventListener("mouseower", myFunction). Maybe this