<form id="myform"> <input type="text" /> </form> <script type="text/javascript"> setTimeout(function(){document.getElementById('myform').submit()},5000) </script>