<html>
<head>
<title>無題</title>
<script>
function testDisable(btn){
btn.disabled = true;
}
</script>
</head>
<body>
<input id="Button1" type="button" value="button" onclick = "btnDisabled(this)"/>
</body>
</html>
<head>
<title>無題</title>
<script>
function testDisable(btn){
btn.disabled = true;
}
</script>
</head>
<body>
<input id="Button1" type="button" value="button" onclick = "btnDisabled(this)"/>
</body>
</html>
<html>
<head>
<title>無題</title>
<script>
function btnDisable(btn){
btn.disabled = true;
}
</script>
</head>
<body>
<input id="Button1" type="button" value="button" onclick = "btnDisable(this)"/>
</body>
</html>
<input type="button" value="button" onclick="this.disabled=true" />
这个,3楼的方法,就非常不错.
function btn(btn){
btn.disabled = true; }
会报错在HTML页面不会!