Created
May 19, 2020 20:07
-
-
Save agustinpfs/fad471bd23e3bbb40de5550d0f9ab26b to your computer and use it in GitHub Desktop.
script
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
<script> | |
function cambiaColor(color) { | |
if (color == 'rojo') { | |
document.getElementById("titulo").style.color = "red" | |
}else { | |
document.getElementById("titulo").style.color = "yellow" | |
} | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment