Answers for "use button on click to redirect"

7

html button redirect

For button redirection you can use below code:

Using these two type <button> and <input> tag:

<a href="http://www.google.com/">
   <button>Visit Google</button>
</a>
  
or:

<a href="http://www.google.com/">
   <input type="button" value="Visit Google" />
</a>
  
<!--
I hope it will help you.
Namaste
-->
Posted by: Guest on June-14-2020
0

onclick redirect to url

<td onclick="javascript:window.location.href-'http://www.stackoverflow.com'" style="cursor:hand">Stackoverflow</td>
Posted by: Guest on September-01-2021

Code answers related to "use button on click to redirect"

Browse Popular Code Answers by Language