I put an event using JavaScript in a <a>
tag that is styled as a button, the event is only to show a message that the user will exit the page. But the message looks like all <a>
tags, and I want it to ask only when the user clicks back .
<div>
<div class="groupb">
<a href="../cadastrarPaciente.php" class="botoes">Cadastrar</a>
</div>
<div class="groupb">
<a href="../consultarPaciente.html" class="botoes">Consultar</a>
</div>
<div class="groupb">
<a href="../compararPaciente.html" class="botoes">Comparar</a>
</div>
<div>
<form action="#" method="POST" enctype="multipart/form-data">
<input type="file" name="fileUpload">
<input type="submit" value="Enviar">
</form>
</div>
<div class="groupb">
<a href="../index.html" onclick="confirmaSaida()" class="botoes">voltar</a>
</div>
</div>