<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>JavaScript</title>
  <script>
    function doit() {
      const today = new Date();
      const time = today.toTimeString();
      alert(time);
    }
  </script>
</head>
<body>
  <section>
    <h1>Website</h1>
    <button type="button" onclick="setTimeout(doit, 5000)">Press Button</button>
  </section>
</body>
</html>