how to click in a element javascript code example Example: javascript button onclick programmatically document.getElementById("myCheck").click();