Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #button #url
ADD COMMENT
Topic
Name
3+2 =