Answers for "how to redirect in an onclick function"

7

js onclick redirect

<button onclick="location.href='www.yoursite.com'">Click Me</button>
Posted by: Guest on June-16-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 "how to redirect in an onclick function"

Browse Popular Code Answers by Language