Hi all,
Below is an example, How to disable the text selection and copy text.
Controls the actual Selection operation. This doesn't have any effect on content loaded as chrome, except in textboxes.
CSS :-
.noselect {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
HTML :-
<p>
This text can be select and copy
</p>
<p class="noselect">
This text can't be select and copy
</p>
Output :-
This text can be select and copy
This text can't be select and copy
0 Comment(s)