I would like to ask whether or not they want to eliminate a Patient by means of a YES or NOT something simple ... I've tried and he asks me if he wants to delete it using Javascript, but he does not do anything ...
<a href='pagines/esborrar.asp?id=<%=rs("Numero")%>&que=<%=nomfitxer%>'><img src="images/delete.gif" border="0" alt="Borrar" /></a>
This is what I've tried:
Script
function irAWeb() {
if (confirm("¿Quieres ir a la página del Mensajeitor?")) {
document.location.href = 'pagines/esborrar.asp?id=<%=rs("Numero")%>&que=<%=nomfitxer%>';
}
}
<a onclick="irAWeb(); return false;" href='pagines/esborrar.asp?id=<%=rs("Numero")%>&que=<%=nomfitxer%>'><img src="images/delete.gif" border="0" alt="Borrar" /></a>