javascript菜鸟问题,如何重置表单

<html><head><metahttp-equiv="Content-Type"content="text/html;charset=big5"/><title>无标... <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5" />
<title>无标题文档</title>
<style type="text/css">
<!--
.STYLE1 {
font-size: 36px;
font-family: "宋体";
}
.STYLE2 {font-size: 18px}
-->
</style>
<script language="javascript" src="zhuce.js">
</script>
</head>
<body>
<div class="STYLE1" id="layer1">
    用户注册</div>
<hr align="center" wigth="100%">
<table width="80%" height="100" align="left" cellspacing="40" bordercolor="#D4D0C8">
<tr>
<td>
<div>
<div class="STYLE2">
<label id="1">用户名          
<input name="t1" type="text" id="t1" />
</label>
</div>
<div class="STYLE2">
<label id="2">密码              
<input name="t2" type="password" id="t2" />
</label>
</div>
<div class="STYLE2">
<label>重复密码       
<input type="password" name="t3" id="t3" />
</label>
</div>
<div class="STYLE2">
<label id="3">超级密码       
<input name="t4" type="password" id="t4" />
</label>
</div>
<div class="STYLE2">
<label>重复超级密码
<input type="password" name="t5" id="t5" />
</label>
</div>
<div class="STYLE2">
性别
<form id="t6" name="t6" method="post" action="">
<p>
<label>
<input type="radio" name="RadioGroup1" value="男" />
男</label>
<br />
<label>
<input type="radio" name="RadioGroup1" value="女" />
女</label>
<br />
</p>
</form>
</div>
<div class="STYLE2">
<label id="5">年龄              
<input name="t7" type="text" id="t7" />
</label>
</div>
<div class="STYLE2">
<label id="6">身份证          
<input name="t8" type="text" id="t8" />
</label>
</div>
<div class="STYLE2">
<label id="7">真实姓名       
<input name="t9" type="text" id="t9" />
</label>
</div>
</div>
</td>
</tr>
<tr>
<td>
<div>
<br />
</div>
</td>
</tr>
<tr>
<td>
<div><input name="a" type="reset" value=" 重 置 " /><input name="b" type="submit" id="b" onClick="mc()" value=" 提 交 " />
</div>
</td>
</tr>
</table>
</body>
</html>
big5是繁体编码
都 是对的
我都 不知道选谁的了
展开
 我来答
百度网友bd57fabd2
2009-02-23 · TA获得超过722个赞
知道小有建树答主
回答量:1200
采纳率:0%
帮助的人:865万
展开全部
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5" />
<title>无标题文档</title>
<style type="text/css">
<!--
.STYLE1 {
font-size: 36px;
font-family: "宋体";
}
.STYLE2 {font-size: 18px}
-->
</style>
<script language="javascript" src="zhuce.js">
</script>
</head>
<body>
<div class="STYLE1" id="layer1">
用户注册</div>
<hr align="center" wigth="100%">
<form id="t6" name="t6" method="post" action="">
<table width="80%" height="100" align="left" cellspacing="40" bordercolor="#D4D0C8">
<tr>
<td>
<div>
<div class="STYLE2">
<label id="1">用户名
<input name="t1" type="text" id="t1" />
</label>
</div>
<div class="STYLE2">
<label id="2">密码
<input name="t2" type="password" id="t2" />
</label>
</div>
<div class="STYLE2">
<label>重复密码
<input type="password" name="t3" id="t3" />
</label>
</div>
<div class="STYLE2">
<label id="3">超级密码
<input name="t4" type="password" id="t4" />
</label>
</div>
<div class="STYLE2">
<label>重复超级密码
<input type="password" name="t5" id="t5" />
</label>
</div>
<div class="STYLE2">
性别

<p>
<label>
<input type="radio" name="RadioGroup1" value="男" />
男</label>
<br />
<label>
<input type="radio" name="RadioGroup1" value="女" />
女</label>
<br />
</p>

</div>
<div class="STYLE2">
<label id="5">年龄
<input name="t7" type="text" id="t7" />
</label>
</div>
<div class="STYLE2">
<label id="6">身份证
<input name="t8" type="text" id="t8" />
</label>
</div>
<div class="STYLE2">
<label id="7">真实姓名
<input name="t9" type="text" id="t9" />
</label>
</div>
</div>
</td>
</tr>
<tr>
<td>
<div>
<br />
</div>
</td>
</tr>
<tr>
<td>
<div><input name="a" type="reset" value=" 重 置 " /><input name="b" type="submit" id="b" onClick="mc()" value=" 提 交 " />
</div>
</td>
</tr>
</table>
</form>
</body>
</html>

//顺便问一句,这big5是什么鬼编码?
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
sjiakang
2009-02-23 · TA获得超过110个赞
知道答主
回答量:127
采纳率:0%
帮助的人:88.6万
展开全部
<div><input name="a" type="reset" value=" 重 置 " />
这句就是不就是实现重置功能吗?

BIG5是页面使用的字符集 一般台湾那边用BIG5的多一些 简体中文多用GBK、GB2312或UTF-8
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
岑行柏3204
2009-02-23 · TA获得超过2435个赞
知道大有可为答主
回答量:1549
采纳率:0%
帮助的人:1362万
展开全部
<form id="t6" name="t6" method="post" action=""> 移动到 <body>下一行

</form> 移动到 </body>上一行
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
笨瓜007
2009-02-23 · TA获得超过426个赞
知道小有建树答主
回答量:610
采纳率:0%
帮助的人:483万
展开全部
用Javascript把value都清了就行了。
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
在仙人城思绪万千的青花菜
2009-02-23 · 超过13用户采纳过TA的回答
知道答主
回答量:85
采纳率:0%
帮助的人:37.2万
展开全部
document.all.formName.reset();
本回答被提问者采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 更多回答(3)
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式