at HTMLButtonElement.click ( code example
Example 1: javascript trigger click on element
document.getElementById('myElementID').click();
Example 2: js trigger click
// On mouse-over, execute myFunction
function myFunction() {
document.getElementById("myCheck").click();
}