1
<form id="frm1" action="form_action.asp" method="get">
2
First name: <input type="text" name="fname" value="Donald"><br> Last name: <input type="text" name="lname" value="Duck"><br>
3
<input type="submit" value="提交">
4
</form>
5
<p>发送表单数据的方法:
6
<script>
7
document.write(document.getElementById("frm1").method);
8
</script>
9
</p>