<html>
<body>
<form action="login
<input type="button" name="btn" value="提交表單" onclick="return sub();" />
</form>
</body>
</html>
表單提交後
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/20213.html
<html>
<body>
<form action="login
<input type="button" name="btn" value="提交表單" onclick="return sub();" />
</form>
</body>
</html>
表單提交後