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

iphone - Three second countdown in cocos2d -

hyperlink - how to do url routing in php -

c - Avoiding Extra Malloc in Linked List (node->next = NULL) -