Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript onsubmit

// get the form object
let object = document.getElementById('object')

// directly
object.onsubmit = function() { myScript };

// or using the addEventListener() method:
object.addEventListener("submit", myScript);
 
PREVIOUS NEXT
Tagged: #javascript #onsubmit
ADD COMMENT
Topic
Name
7+6 =