The below shows how to use the onclick event on a button element, to throw out a basic alert box.
<button onclick="alert('Dont poke me. Just dont. Im just not in the mood!');">Don't poke me!</button>