force click on element javascript code example
Example 1: element clicked js
document.addEventListener('click', function(e) {
e = e || window.event;
var target = e.target || e.srcElement,
text = target.textContent || target.innerText;
}, false);
Example 2: javascript perform click
eventFire(document.getElementById('mytest1'), 'click');