定时自动提交表单

来源:互联网 发布:cms视频监控软件 编辑:程序博客网 时间:2024/06/03 01:57
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>定时自动提交表单</title>

</head>

<body>
<form id="form1" name="form1" method="post" action="">
  <input type="submit" name="Submit" value="提交" />
</form>
<script>
window.setTimeout("form1.submit()",1000);//毫秒
</script>

</body>
</html>