从才子的BLOG上转来的:
以下是程序代码:
<script language="javascript">
function check(){
s.disabled=(t1.value==""||t2.value==""||t3.value=="")
}
</script>
<input name="t1" onpropertychange="check()" />
<input name="t2" onpropertychange="check()" />
<input name="t3" onpropertychange="check()" />
<input type="submit" name="s" disabled="desabled" />