Answers for "open url on button press"

35

onclick button href

<button onclick="window.location.href='/page2'">Continue</button>
Posted by: Guest on June-08-2020
1

onclick open new url html

<input type="button" value="button name" onclick="window.open('http://www.website.com/page')" />
Posted by: Guest on June-02-2021

Browse Popular Code Answers by Language