I am trying to make webpage very native. How to remove select,select all property in webpage?
You can use jquery for this: $('body'). bind('copy paste',function(e) { e. preventDefault(); return false; });
body {   -webkit-user-select: none;      -moz-user-select: -moz-none;       -ms-user-select: none;           user-select: none; }   This is supported by Chrome, Safari, Firefox, IE 10, and iOS Devices. More info on MDN page.
Edit: If you want <input> and <textarea> to remain selectable in Firefox, add:
input, textarea {      -moz-user-select: text; }   $(document).on("contextmenu", function (event) { event.preventDefault(); }); 
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With