I'm starting to have a short time and I have to register only because I want the information entered by the user such as name, email and age to appear through an "alert" after he clicks the " Accept ".
My HTML and Javascript files are already "interconnected", I do not know if it's possible to do this, if not I'll show you the best way to do it using only HTML and Javascript, and if so please show me how.
My HTML file
<label for="nome">Nome:</label>
<input type="text" name="nome" size="20" maxlength="20" placeholder="Seu nome"/><br><br>
<label for="senha">Senha:</label>
<input type="password" name="senha" size="20" maxlength="25" placeholder="Sua senha"/><br><br>
<input type="button" value="Aceitar" onClick="aceitar()">
<a class="none" href=javascript:history.back();><input type="button" value="Cancelar"></input></a>
</form>
My JS file
function aceitar(){
alert("Aqui seria a concatenação")
}
I look forward to Att, Lone