<script>
function loadEvent() {
document.getElementByID("clickbutton").click(); //the ID you want to be clicked
console.log("works"); //just to check if the functions runs
}
window.onload = loadEvent;
</script>