make click event javascript code example
Example 1: javascript trigger click on element
document.getElementById('myElementID').click();
Example 2: 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');
});