<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<form name="frmTest">
<INPUT TYPE="button" name="btnOne" value="one" onclick="frmTest.btnTwo.disabled=false;">
<INPUT TYPE="button" disabled=true name="btnTwo" value="two">
<BODY>
</BODY>
</HTML>

解决方案 »

  1.   

    在单击事件里设置 diszbled=true 旧可以了
      

  2.   

    <input type="button" name="button1" value="button1" onclick="javascript:button2.disabled=false;">
    <input type="button" name='button2" value="button2">
      

  3.   

    我觉得用iframe较好
    test.htm
    ---------------------------------------------------------------------------------
    <html><head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <title>New Page 2</title>
    <script>
    function submitdata()
    {
      var obj=window.frames("DFrm").document;
      obj.all("bh").value=document.all("T1").value;
      obj.all("DFrm").submit();
      document.all("B3").disabled=false;
     
    }
    </script>
    </head><body>
    <form action="POST" name="Frm" id="Frm">
    <p><input type="text" name="T1" id="T1" size="20"><input type="button" value="按钮1" name="B1" id="B1" onclick="submitdata()"></p>
    <p><input type="button" value="按钮2" name="B3" id="B3" disabled=true></p>
    </form>
    <iframe name="DFrm" id="DFrm" src="test.asp" width=0 height=0></iframe>                                                                                                  </body></html>--------------------------------------------------------------------------------
    test.asp
    --------------------------------------------------------------------------------
    <%
      if request.form("result")=100 then
         response.write "数据处理"
      end if
    %>
    <html><head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <title>New Page 2</title>
    </head><body>
    <form method="POST" action="" name="DFrm" id="DFrm">
      <input type="text" name="bh" id="bh" size="13" class="input">
      <input type="hidden" name="result" value=100>
      <input type="button" onclick="DFrm.submit();">
    </form>  </body></html>---------------------------------------------------------------------------------
      

  4.   

    function enable(){
    document.bt2.disabled = false;
    }
    在按钮1(bt1)中加入onclick事件就可以了。bt2初始状态设为disabled。
      

  5.   

    多谢各位的回复,但是也许你们没有注意我加的那一条,一旦按了第一个按钮后就会有个提交表单的动作,提交对象是本页,所以按了以后就相当于刷新了一下,所以用ONCLICK好像是没有用的,但还是要谢谢各位。现在用另外的途径解决了。