Disable (Text)selection on website


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  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");}

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.