Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

btn.addeventlistener

<!--on html-->
<button>Click Me!</button>

/*js code*/
let btn = document.querySelector('button').addEventListener('click', () => {
    console.log('"Ohh!" Button clicked!')
});
Source by www.ingroy.com #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
3+5 =