Answers for "javascript go to certain page on button"

0

javascript button go to url

<button onclick="window.location='http://www.example.com';">Visit Page Now</button>
<script>
    function visitPage(){
        window.location='http://www.example.com';
    }
</script>
<button onclick="visitPage();">Visit Page Now</button>
Posted by: Guest on December-04-2021
0

html button click go to section

<html>
  <a href="#down">Click Here to Smoothly Scroll Down</a>
  <div id="down">
    <h1>You are down!</h1>
  </div>
</html
Posted by: Guest on August-31-2021

Code answers related to "javascript go to certain page on button"

Browse Popular Code Answers by Language