javascript .clicked property code example
Example 1: javascript click button by id
var button = document.getElementById("button");
button.click();
Example 2: element clicked js
document.addEventListener('click', function(e) {
e = e || window.event;
var target = e.target || e.srcElement,
text = target.textContent || target.innerText;
}, false);