EDIT EVENT ONCLICK

var submitButton = document.getElementById('submitButton');
submitButton.setAttribute('onclick',  'alert("hello");');
Impossible Iguana