javascript 如何实现 按钮点击后变灰色

来源:百度知道 编辑:UC知道 时间:2024/05/31 21:10:47
还要能激发function
在线等待。答对马上给分
答案被采纳了系统不是有加分?

<html>
<head>
<script language="javascript">
function clk() //定义function函数
{
if(window.document.form1.button.click){
window.document.form1.button.disabled=true;
return;
}
}

</script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
<form name="form1" method="post" action="">
<input name="button" type="button" onClick="clk()" value="提交">
</form>
</body>
</html>

你一分都没有,怎么给?》