<form method="POST" name="myform" action="act.php">
</form>
获取表单对象方法一、var form = document.forms['myform'];
获取表单对象方法二、var form = document.myform;
表单属性和方法:1.action
2.elements
3.enctype
4.length
5.method
6.name
7.submit()
8.reset()
<form method="POST" name="myform" action="act.php">
</form>
获取表单对象方法一、var form = document.forms['myform'];
获取表单对象方法二、var form = document.myform;
表单属性和方法:1.action
2.elements
3.enctype
4.length
5.method
6.name
7.submit()
8.reset()