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