<!DOCTYPE html>
<html>
<script>
function message() {
var r = confirm("Are u sure?");
if (r === true){
document.write("ok");
}
else {
document.write("cancel");
}
}
</script>
<body>
<input type="button" value="delete account?" onclick="message()"/>
</body>
</html>