Tuesday, 26 February 2019

Clickable Div or Button : How to open a URL on click of table cell TD or DIV?


<td style="cursor:pointer;" onclick="window.open('https://url', '_blank')">

<input type="button" onclick="window.location.href='https://google.com';" value ="YOUR BUTTON TEXT"/>

<input type="button" onclick="window.open('https://google.com', '_blank')" value ="YOUR BUTTON TEXT"/>

No comments:

Post a Comment