document.onmousedown=function(){
}

解决方案 »

  1.   

    客户端任何东西都是瞎掰,用个禁止script全没用。
      

  2.   

    ondblclick="return false";
    onclick="return false";
    onmousemove="return false";
    oncontextmenu="return false";
    ondragstart="return false";
    onselectstart="return false";
    onselect="return false";
    oncopy="return false";
    onbeforecopy="return false";
    onmouseup="return false";
    //多屏蔽一个算一个,呵呵
      

  3.   

    with(document.body){
        //上帖忘记with了
        ondblclick="return false";
        onclick="return false";
        onmousemove="return false";
        oncontextmenu="return false";
        ondragstart="return false";
        onselectstart="return false";
        onselect="return false";
        oncopy="return false";
        onbeforecopy="return false";
        onmouseup="return false";
       //多屏蔽一个算一个,呵呵
    }
      

  4.   

    //呵呵,一个更好的办法    //开始执行任务时
        parent.rightFrame.body.disabled=true;    //执行完成后,再改回来
        parent.rightFrame.body.disabled=false;
      

  5.   

    function cancelClick(){
      alert("正在处理中");//注意必须要有这个alert函数。否则处理得太快了这个函数没起作用了
      if(window.event != null){
          window.event.returnValue = false;}
    }
    function submitClick(){
      window.event.returnValue = true;
    }处理前:
    window.Form1.attachEvent("onmousedown",cancelClick);
    window.parent.mainFrame.document.Form1.attachEvent("onmousedown",cancelClick);处理完毕后:
    window.Form1.attachEvent("onmousedown",submitClick);
    window.parent.mainFrame.document.Form1.attachEvent("onmousedown",submitClick);
      

  6.   

    parent.rightFrame.body.disabled=true;
    注意disabled只能使页面变灰。。控件一样能够点击呵呵
    你可以去试试看
      

  7.   

    function cancelClick(){
      alert("正在处理中");//注意必须要有这个alert函数。否则处理得太快了这个函数没起作用了
      if(window.event != null){
          window.event.returnValue = false;}
    }处理前:
    window.Form1.attachEvent("onmousedown",cancelClick);
    window.parent.mainFrame.document.Form1.attachEvent("onmousedown",cancelClick);处理完毕后:
    window.Form1.detachEvent("onmousedown",cancelClick);//注意改成detachEvent函数。前面那种做法没办法解除状态的。一点点疏漏。呵呵。
    window.parent.mainFrame.document.Form1.detachEvent("onmousedown",cancelClick);再次谢谢大家的帮忙。希望各位加我QQ:2396199
    大家平常多交流切磋