javascript button onclick programmatically

JavaScript
document.getElementById("myCheck").click();
Source

Also in JavaScript: