禁止选择网页中的文字

onselectstart

这个事件主要是用于禁止选择网页中的文字。代码为:

document.onselectstart =function(){
            return false;
        }
或则

  

你可能感兴趣的:(禁止选择网页中的文字)