如题

解决方案 »

  1.   

    L@_@K
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title> new document </title>
        <meta name="generator" content="editplus" />
        <meta name="author" content="[email protected]" />
        <meta name="keywords" content="" />
        <meta name="description" content="" />
    </head>
    <body>
    <input type="text" id="inputText" value="click me" onclick="alert(this.value);" />
    <input type="button" id="cancelButton" value="取消输入框 onclick 事件" />
    <script type="text/javascript">
    <!--
        document.getElementById("cancelButton").onclick = function() {
            document.getElementById("inputText").onclick = null;
        };
    //-->
    </script>
    </body>
    </html>
      

  2.   

    Web 开发常用手册DHTML 参考手册
    http://download.csdn.net/source/308913JScript 语言参考
    http://download.csdn.net/source/308916CCS 样式表中文手册
    http://download.csdn.net/source/304124
      

  3.   

    我试过了,不成功,比方说一个checkbox,我要的结果是单击没反应,其他的相关 但未知的函数都不调用
      

  4.   

    checkbox怎么可能单击没反应 除非你用js控制
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>实例</title>
    </head>
    <body>
    <input type="checkbox" onclick="this.checked = !this.checked;"><span style="font-size:12px;vertical-align:middle;">点我没反应</span>
    </body>
    </html>
      

  5.   

    希望 lz 以后能把问题叙述清楚!L@_@K
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title> new document </title>
        <meta name="generator" content="editplus" />
        <meta name="author" content="[email protected]" />
        <meta name="keywords" content="" />
        <meta name="description" content="" />
    </head>
    <body>
    <input type="checkbox" id="" checked onclick="return false;" />
    <input type="checkbox" id="" onclick="return false;" />
    </body>
    </html>
      

  6.   

    哦!
    直接return false就可以了,我写法绕了个弯。
      

  7.   

    用jQuery比较方便$('.cancelClick').each()
      

  8.   

    使用jQuery的unbind("click")没做到