0
Why hover function in css but not is java
hover look like javascript
3 Answers
+ 5
In javascript it's onmouseover.
Like, <img onmouseover="myFunction()">
+ 3
Hover exist as event in JS aswell as pseudo class in css
+ 2
example in Jquery:
$('selector').hover(function(){
//your code
});