html onclick open url code example
Example 1: onclick open link js
window.open(url);
Example 2: onclick open new url html
<input type="button" value="button name" onclick="window.open('http://www.website.com/page')" />
window.open(url);
<input type="button" value="button name" onclick="window.open('http://www.website.com/page')" />