open url on button click 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);
<input type="button" onclick="window.open('http://www.example.com','_blank','resizable=yes')" />
window.open(url);