form单提交后按钮变成失效变灰

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>表单提交后按钮变成灰色</title>
</head>
<body>
<form name=form1 method="POST" action="/" target=_blank>

<p><input type="text" name="T1" size="20">

<input type="button" value="提交" onclick="javascript:{this.disabled=true;document.form1.submit();}">
<input type="reset" value="重置" name="B2"></p>
</form>
</body>
</html>

posted @ 2013-11-03 13:20  程序猿网友666  阅读(720)  评论(0编辑  收藏  举报