<!DOCTYPE html>

<html>

<head>

   <title>Simple Counter</title>

   <script>

       // 定义计数器变量并初始化为0

       var counter = 0;


       // 点击按钮时增加计数器的值并更新显示

       function increaseCounter() {

           counter++;

           document.getElementById("counterDisplay").innerHTML = counter;

       }

   </script>

</head>

<body>

   <h1>Simple Counter</h1>

   <p>Current count: <span id="counterDisplay">0</span></p>

   <button onclick="increaseCounter()">Increase Count</button>

</body>

</html>