Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

reset event listener javascript



const form = document.getElementById('form');
const log = document.getElementById('log');
form.addEventListener('reset', logReset); // reset form input values
function logReset(event) {
  log.textContent = `Form reset! Time stamp: ${event.timeStamp}`;
}
 
PREVIOUS NEXT
Tagged: #reset #event #listener #javascript
ADD COMMENT
Topic
Name
5+9 =