<script>
function myPrompt(password,id) {
var txt;
var alt = prompt("Please enter your password:", "");
if (alt == null || alt == "" || alt != password) {
return false;
} else {
window.location='http://localhost/delete.php?id='+id;
}
}
</script>
<input type="submit" onclick="myPrompt(1234,10)" value="Delete">