click button and open file file in javascript code example
Example: javascript open link with button
<input type="button" onclick="window.open('http://www.example.com','_blank','resizable=yes')" />
<input type="button" onclick="window.open('http://www.example.com','_blank','resizable=yes')" />