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