Answers for "how to redirect using onclick"

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

Browse Popular Code Answers by Language