Adding this neat little trick to your page elements is as simple as adding the following snippet of code to whichever element you want to use it with:
onClick='alert("Your Text Here!")'
So for example, yhe code for an input button would look like:
<input type="button" value="Click here to be alerted"
onClick='alert("Your Text Here!")'>
And the code for an anchor tag would look like:
<a href="file.html" onClick='alert("Your Text Here!")'>Click Here</a>