2
What I wanted was to get the name of the person shows with Alert but I’m not getting
My html code
var nome = document.getElementById('id1').value;
function clique(){
alert(nome);
}
<input id="id1" type="text"/>
<button onclick="clique">Clique aqui</button>
our missing attention, thank you very much
– diogo.alves