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