window.onload = function(){ setTimeout(function(){ document.getElementById('clerkbutton').click(); }, 2000); };