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