2
I put an event using Javascript in a tag <a>
that this stylized as a button, the event serves only to show a message that the user will leave the page. But the message looks for all tags <a>
, and I want him to ask only when the user clicks come 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>
Edith your question and put the code Javascript !!
– NoobSaibot
If you ask for all "a" then you must be using bind of some function in the "a" tags. From the above code until now the only "a" tag that calls a function is the link back using onclick.
– Antonio Alexandre