最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

jsp form表單方法示例

 更新時間:2009年10月04日 15:37:14   作者:  
jsp form表單方法示例代碼,大家可以看下,對于新手來說是必備的知識。
1.代碼:
復(fù)制代碼 代碼如下:

<%--
Document : index
Created on : 2009-10-4, 13:56:46
Author : lucifer
--%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript">
function giveFocus(){
document.login.user.focus()
}
function submitForm(){
document.login.submit()
}
function resetForm(){
document.login.reset()
document.login.user.focus()
}
</script>
</head>
<body bgcolor="#c0c0c0" link="#999999" alink="#999999" vlink="#999999"
onload="giveFocus()">
<center>
<font size="+2">
<br><br>
<B>LOGIN</B>
</font>
<br><br><br><br>
<form name="login" method="post"
action="http://wenda.tianya.cn/wenda/thread?tid=129583d1f709f89f">
<table width="50%">
<tr>
<td align="right">
<font size="+1">
<B>User ID</B>
</font>
</td>
<td>
<font size="+1">
<input type="text" name="user" maxlength="9">
</font>
</td>
</tr>
<tr>
<td align="right">
<font size="+1">
<B>Password</B>
</font>
</td>
<td>
<font size="+1">
<input type="password" name="password"
maxlength="8">
</font>
</td>
</tr>
</table>
<br><br><br>
<font size="+1">
<B>
<input type="button" value="LOGIN" onclick="submitForm()">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="button" value="RESET" onclick="resetForm()">
<br>
</B>
</font>
</form>
</center>
</body>
</html>

2.結(jié)論:
"formname".submit()作用與<input type="submit" ......>相同,就是提交表單數(shù)據(jù),如果button和submit同時存在,只有submit有提交表單的作用

相關(guān)文章

最新評論

上高县| 栖霞市| 荥经县| 饶平县| 玉树县| 威宁| 晋城| 班戈县| 武义县| 唐海县| 通城县| 即墨市| 左权县| 贵定县| 邵阳县| 万全县| 个旧市| 泾川县| 荥经县| 左云县| 理塘县| 齐齐哈尔市| 黎平县| 定远县| 云梦县| 青浦区| 博爱县| 拉萨市| 中宁县| 洮南市| 安泽县| 额尔古纳市| 正宁县| 阳泉市| 肇源县| 贵州省| 黑水县| 江油市| 旬邑县| 镶黄旗| 庄浪县|