I have a
<a href="#" onclick="ConfirmDelete()" class="btn btn-danger my-1 mx-1"> delete </a>
function ConfirmDelete() {
confirm("delete user");
}
so the problem is that hello there is a problem when I press cancel it still deletes the user info ( it executes the same order no matter you press cancel or ok )