http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/events/oncopy.asp

解决方案 »

  1.   

    document.oncopy=function(){return false;}你的写法没错!
      

  2.   

    <SCRIPT LANGUAGE="JavaScript">
    <!--
    document.oncopy=function(){return false;}
    //-->
    </SCRIPT></HEAD><BODY BGCOLOR="#FFFFFF">
    asdfasdfasdfasdfasdfasdfasdfadfasdf
    <INPUT TYPE="text" NAME="">
    </BODY>
    ----------------------------------------------
    怎么还是可以把字符串copy到文本框中?
      

  3.   

    其实你要防止被copy你可以定义另一个方法:
    onselectstart="return false"document.onselectstart = function(){return false;}
      

  4.   

    这样是可以,但是页面上的文本框我还是希望可以选择,
    这样用这个方法就不行了,因为如果文本框可以被选择,就不能阻止copy操作
      

  5.   

    那你就加个判断好了:
    document.onselectstart = function(){return window.event.srcElement.tagName=="INPUT";}