onclick="return confirm('delete it?')"可以了//////////////

解决方案 »

  1.   

    <form method=post action="" name="form1">
    <button onclick="del()">del</button>
    </form>
    <script language="JavaScript">
    <!--
    function del()
    {
       if(confirm("你确定要删除这些数据?"))
       {
          document.form1.submit();
       }
    }
    //-->
    </script>
      

  2.   

    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>无标题文档</title>
    </head><body>
    <form name=form1>
    <input type="checkbox" name="checkbox" value="1" onClick="if(document.form1.checkbox.value==1){document.form1.text_1.disabled=false}">
    <input type="text" name="text_1" disabled>
    </form>
    </body>
    </html>