-5
let iniciar = document.getElementById("iniciar")
let pausar = document.querySelector('.pausar')
iniciar.addEventListener("click", function(event) {
alert('Cliquei no iniciar')
}, true);
pausar.addEventListener('click', function(event) {
alert('Cliquei no pausar')
});
<button id='iniciar'>Iniciar</button>
<button class='pausar'>Pausar</button>
Thank you.... =)
– Victor Alexandre
That code doesn’t work.
– Augusto Vasques