Answers for "go to url on button click"

2

onclick go to url

<input type=button onClick="opener.location='https://www.plus2net.com/'" value='Make the Main window change'>
<input type=button onClick="opener.location='https://www.plus2net.com/html_tutorial/button-linking.php'" value='Bring the button linking tutorial again'>
<input type=button onClick="location='https://www.plus2net.com/'" value='Make the current  window change'>
<input type=button onClick="self.close();" value="Close this window">
Posted by: Guest on January-28-2021
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

Code answers related to "go to url on button click"

Code answers related to "Javascript"

Browse Popular Code Answers by Language