Good, what happens is that I have a table, where I have this link to delete a record by php.
<a href="sqlEliminarAlumno.php?txtid='.$rut_alumno.'" onclick="confirmDel()">Eliminar</a>
and I'm trying to delete the record by calling this function,
function confirmDel()
{
var agree=confirm("¿Realmente desea eliminarlo? ");
if (agree) return true ;
return false;
}
but it shows the confirm on the screen, I press cancel and the record is deleted anyway. What is the problem? thanks in advance:)