Posts by Pedro Del • 1 point
1 post
-
-2
votes2
answers48
viewsA: How do I fire an Alert with the click of a button in javascript?
Try this: function MeuAlerta() { alert('Escreva a mensagem'); } <button type="button" id="btnAlerta" onchange="MeuAlerta();">Alerta</button>…