how to open a url on button click in javascript code example
Example 1: javascript open link with button
<input type="button" onclick="window.open('http://www.example.com','_blank','resizable=yes')" />
Example 2: onclick open link js
window.open(url);