get element by id at clic code example Example: javascript button onclick programmatically document.getElementById("myCheck").click();