how to click on an element using js code example Example: javascript button onclick programmatically document.getElementById("myCheck").click();