disabled 属性可设置或返回是否禁用按钮。
buttonObject.disabled=true|false
下面的例子可在点击按钮时禁用该按钮:
<html>
<head>
<script type="text/javascript">
function disableButton()
{
document.getElementById("myButton").disabled=true
}
</script>
</head>
<body>
<form>
<input type="button" id="myButton"
value="Click me!" onclick="disableButton()" />
</form>
</body>
</html>