Set the value of the onclick attribute to call deleteAccount() when a visitor clicks on the button.

<html>
<body>
  <button onclick="orderItem()">Delete account</button>
  <p id="prompt"><p>
 <script>
function orderItem() {
document.getElementById("prompt").innerHTML = "Account deleted!";
}
</script>
</body>
</html>]]>

Make sure to pick the value with quotes, "deleteAccount()".