Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

events in javascript

Events are things browser or user do it like click,scroll,press keyboard.
const button =document.querySelector('#submit)
 //Click,Scroll,Resizing the browser
 button.addEventListener('click', function(){
console.log('New Item added'); //when button with id #submit click it console.log
})
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #events #javascript
ADD COMMENT
Topic
Name
7+5 =