<input type="button" onclick="this.disabled=true" value="button">

解决方案 »

  1.   

    <input type="button" onclick="this.disabled=1" value="button">
      

  2.   

    <input type="button" onclick="this.disabled=2" value="button">
      

  3.   


    <HTML>
    <HEAD>
    <META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" >
    <link rel="stylesheet" href="/csdn.css">
    <style>
    textarea.content
    {
    font-family:Fixedsys 宋体;
    behavior:url('/Expert/xsl/tacontent1.htc');
    }
    </style><SCRIPT LANGUAGE="javascript">
    <!--
    function input(ok)
    {
        var M1=ok.ReplyContent.value;
        if (M1=='') {
    alert('回复内容不可以为空.');
    return false;
    }
    ok.B1.disabled =true;
    ok.B2.disabled =true;
        return true;
    }
    //-->
    </script>
    </HEAD>
    <BODY>
    <form action="/Expert/reply.asp" onsubmit="return input(this)" method="post"   id=XmlRePly name=XmlRePly>
    <table border="0" width="100%" height="100%" ID="Table1"> 
    <tr><td height="20"></td></tr>
    <tr><td height="25">
    <input type="hidden" name="Topicid" value="3043753" ID="Hidden1"> 
    <input type="hidden" name="xmlReply" value="aaaaa" ID="Hidden2"> 
    <input type=hidden name=csdnname size=10 value="">
    <input type=hidden name=csdnpassword size=10 value="">
    </td></tr>
    <tr><td valign="top">
    <textarea cols="82" rows="10" name="ReplyContent" class='content'></textarea>
    <br><input type="submit" value="发出回复" border="0" name="B1"  WIDTH="60" HEIGHT="20" class="formtext">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<INPUT name="B2" TYPE="reset" WIDTH="60" HEIGHT="20" class="formtext" value="重  写"><br>
    &nbsp;<font color="#FF6633">在这里发贴,表示您接受了CSDN论坛的 <A HREF="http://www.csdn.net/expert/ltzz.shtm" target="_blank">用户行为准则</A>。<BR>&nbsp;请您对您的言行负责,并遵守中华人民共和国有关法律、法规,尊重网上道德。
    </font>
    </td></tr></table>
    </form>

    </BODY>
    </HTML>
      

  4.   

    <input type="submit" onclick="this.disabled=true" value="button">