1<form name="myForm" id="myForm" target="_myFrame" action="test.php" method="POST">
2 <p>
3 <input name="test" value="test" />
4 </p>
5 <p>
6 <input type="submit" value="Submit" />
7 </p>
8</form>
9
10<script type="text/javascript">
11 window.onload=function(){
12 var auto = setTimeout(function(){ autoRefresh(); }, 100);
13
14 function submitform(){
15 alert('test');
16 document.forms["myForm"].submit();
17 }
18
19 function autoRefresh(){
20 clearTimeout(auto);
21 auto = setTimeout(function(){ submitform(); autoRefresh(); }, 10000);
22 }
23 }
24</script>
25