Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

button in javascript

<!--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: #button #javascript
ADD COMMENT
Topic
Name
4+8 =