+ 2

How can I control "hover" of css with javascript

For example "a:hover" controlled with DOM

13th Jun 2020, 8:02 PM
Awojobi Godfrey
Awojobi Godfrey - avatar
1 Réponse
+ 2
Hover is a so called pseudoelement, it does not really exist in the DOM. What you can do is utilize events, like mouseover, mouseout etc. and execute code on action, changing the style of the element.
13th Jun 2020, 8:15 PM
spotbot2k
spotbot2k - avatar