This is the best way!
<a id="btn" onclick='alert("Hello people up vote please...! Thanks");'>Run Function</a>