Take a look at this fiddle. hoverhandler
is function-handler (just as the example), that works every time when mouseover
event is fired on div-two
. To show that it works, it changes the background color of div-one
. Hope this example will help you.
Why doesn't an onMouseOver action appear to be working in javaScript? [closed]
-
16-07-2023 - |
Pergunta
I'm having an issue with this function call for some reason, and don't know why (it gets called every time):
box = document.getElementById("object");
box.onmouseover=function();
Solução
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow