Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

edit onclick event

var submitButton = document.getElementById('submitButton');
submitButton.setAttribute('onclick',  'alert("hello");');
 
PREVIOUS NEXT
Tagged: #edit #onclick #event
ADD COMMENT
Topic
Name
8+5 =