Code onclick="save()" to call the save() function in the included script.

<html>
<body>
  <button onclick="save()">Save progress</button>
  <p id="prompt"><p>
<script>function save() {
document.getElementById("prompt").innerHTML = "Progress saved!";
}</script>
</body>
</html>]]>

Make sure to add onclick="save()".