javascript - Lock text highlighting in a website? -


i want lock copy button don't want lock save button totally right click ,so user of site can save website html file can not copy text ,how can javascript guys?

you can use css:

user-select: none; 

this makes text on site not selectable, user not able highlight , copy of it.

additional information can found on site here:

how disable text selection highlighting using css?


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -

php - Accessing static methods using newly created $obj or using class Name -