HTML File:
<button id="this_is_a_button" name="this_is_a_button" onclick="when_the_button_clicked_func()">Button's text goes here</button>
JS File
function when_the_button_clicked_func(){
// The events goes here
alert("Wow! You clicked the button!"); // for example
}