Hello, I'm trying to get the value of a button and put it in a variable, but does not give a way, some help?
///HTML
<button class="teclado" id="qTeclado" onClick="clickTeclado(this.value);" value="Q">Q</button>
//JS
var letra = function clickTeclado(letra) {
document.getElementById('qTeclado').onClick = letra;
alert(letra);
}