javascript on click create button code example
Example: how to create click function in javascript
var x = document.getElementById('container');
//click can also be antother event
x.addEventListener('click', function (x) {
console.log('hi');
});
var x = document.getElementById('container');
//click can also be antother event
x.addEventListener('click', function (x) {
console.log('hi');
});