1
respuesta

Error boton

<button id="boton">Haga clic</button>
<script>

    var boton = document.querySelector('#boton');

    function botonHandler() {

        alert('Hicieron clic en el Botón');
    }

    boton.addEventListener('click', botonHandler);
</script>
1 respuesta

Muy bien Fabio! Excelente tu solución! Slds.