<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>JavaScript</title>
  <script>
    function doit() {
      window.location = "https://www.formasterminds.com";
    }
  </script>
</head>
<body>
  <section>
    <h1>Website</h1>
    <button type="button" onclick="doit()">Press Button</button>
  </section>
</body>
</html>