get this click in javascript code example
Example 1: javascript button onclick programmatically
document.getElementById("myCheck").click();
Example 2: how to get the text of a clicked elemet by javascript
$(document).click(function(event) {
var text = $(event.target).text();
});