button click programaticaly javascript not working code example Example: javascript button onclick programmatically document.getElementById("myCheck").click();