window.onload = function(){ document.forms['form1'].submit(); }
<body onload="document.form1.submit()">