Created
May 1, 2019 17:52
-
-
Save irwingb1979/9feeea00b90c774d1d2721f16eff3d05 to your computer and use it in GitHub Desktop.
onmouseover javascript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<button id="button" onmouseover="sobreBoton();" onmouseout="afueraBoton()">Button</button> | |
<script> | |
function sobreBoton() { | |
document.getElementById("button").innerHTML = "Welcome"; | |
} | |
function afueraBoton() { | |
document.getElementById("button").innerHTML = "Thanks"; | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment