I have the following button
:
<button type="button" id="myButton" onmouseover="myChange(this)" onmouseout="normalize(this)">Click me!</button>
And the following function when the mouse is removed from the button
:
function normalize(boton){
boton.style.backgroundColor = "blue";
boton.style.color = "white";
boton.style.border = "none";
}
Well, it just doesn't run, why is it?
It seems your function
normalize
is conflicting withString.prototype.normalize()
.Just rename your function: