Posted By

localhorst on 03/18/08


Tagged

disable textselection


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

SpinZ


Disable (Text)selection on website


 / Published in: JavaScript
 

URL: http://mediavrog.net/blog/2007/10/24/browser/markieren-von-text-abschalten-ohne-javascript-per-css/

  1. if(window.ie || window.opera){this.lab.setProperty("unselectable","on");}
  2. if(window.gecko){this.lab.setStyle("MozUserSelect","none");}
  3. if(window.webkit){this.lab.setStyle("KhtmlUserSelect","none");}

Report this snippet  

You need to login to post a comment.