Hey i'm trying to make use of onclick =return confirm but whenever I click on the button, no prompt appears and it just heads to the redirect. My front end development isn't really the best. Any help is appreciated. Thanks
<td><a href="delete.php?id='.$row["userID"].'" onclick="return confirm("Are you sure you want to delete ?")" class="waves-effect waves-light btn-small red lighten-1"><i class="material-icons">delete</i></a></td>