Answers for "edit onclick event"

1

edit onclick event

var submitButton = document.getElementById('submitButton');
submitButton.setAttribute('onclick',  'alert("hello");');
Posted by: Guest on March-26-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language