How to disable text selection and highlighting ?

The answers of above question is super easy or may be temporary . You just need to know about some css attribute and it will work as you want.

   -moz-user-select: none;
   -khtml-user-select: none;
   -webkit-user-select: none;
   -ms-user-select: none;
   user-select: none;

Note that user-select is in standardization process (currently in a W3C working draft). It is not guaranteed to work everywhere. There might be differences in implementation among browsers. Also, browsers can drop support for it in the future.

This is introduced in Internet Explorer 10.  See

Leave a Reply

Your email address will not be published. Required fields are marked *

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 35,513 other subscribers


Copyright © BugFixr 2023-2024