<input type="button" name="btn1" id="btn1" value="Click Me" onclick="alert('hi);">
function fun1() { getElementById("btn1").click(); }
Comment