<html>
<head>
<meta httpequiv="ContentType" content="text/html; charset=utf" />
<title>表單提交後按鈕禁用</title>
<script type="text/javascript">
function sub() {
documentforms[]elements[]disabled = true;
documentforms[]submit();
}
</script>
</head>
<body>
<form action="loginaction" method="post">
<input type="button" name="btn" value="提交表單" onclick="return sub();" />
</form>
</body>
</html>
表單提交後提交按鈕不可用
From:http://tw.wingwit.com/Article/program/Java/Javascript/201311/25495.html