This is the same as the onClick link alert but with a form button. Try it on the button below.
Cut & Paste This Form:
<form> <input type="button" value="Text For Button Here" onClick="alert('Text For Alert Here')"> </form>