Skip to content

Instantly share code, notes, and snippets.

/index.html
Created Mar 31, 2017

Embed
What would you like to do?
Cambio a mayusculas o minúsculas
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Excel To HTML using codebeautify.org</title>
</head>
<body>
<form>
<input id="txtOriginal" name="original" />
<br />
<input id="txtResultado" name="resultado" />
<br />
</form>
<button id="btnMayus" onclick="mayus()"> May&uacute;sculas </button>
<br />
<button id="btnMinus" onclick="minus()"> Min&uacute;sculass </button>
<script type="text/javascript">
function mayus() {
var input = document.getElementById('txtOriginal');
var output = document.getElementById('txtResultado');
output.value = input.value.toUpperCase();
}
function minus() {
var input = document.getElementById('txtOriginal');
var output = document.getElementById('txtResultado');
output.value = input.value.toLowerCase();
}
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.