change onclik event code example
Example: edit onclick event
var submitButton = document.getElementById('submitButton');
submitButton.setAttribute('onclick', 'alert("hello");');
var submitButton = document.getElementById('submitButton');
submitButton.setAttribute('onclick', 'alert("hello");');