window.onload = function(){ var button = document.getElementById('milid'); button.form.submit(); }