Add the attribute to react to clicks from visitors.
<html>
<body>
<button onclick="orderItem()">Order item</button>
<p id="prompt"></p>
<script>
function orderItem() {
document.getElementById("prompt").innerHTML = "Item ordered!";
}
</script>
</body>
</html>]]>Make sure to pick onclick.