HTML
<input type="button" value="click" onclick="msg()"/>
CSS
JavaScript
function msg(){ alert("Hello Alert Box"); }
Output