function myTestFuntion(){alert("I am Kapil Dhawan");}
<input type="button" onclick="myTestFuntion()" value="Submit"&RT;