<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>表单提交后按钮变灰代码 - www.plcxue.com</title>
<meta http-equiv="content-type" content="text/html;charset=gb2312">
</head>
<body>
<script language="
javascript">
function my_submit(){
document.form1.submit();
document.form1.submit1.
disabled=true;
}
</script>
<form action="/" method="post" name="form1">
<input type="text" name="name">
<input type="button" name="submit1" value="提交" onClick="javascript:my_submit();">
</form>
</body>
</html>