Portal of all Blogger widget, Airtel USSD Codes, Facebook Hack, Free Internet Tips, PC and Blogger Tricks

Breaking

Saturday, 29 July 2017

Disable Text Selection/Copying In some Part Of HTML Page



You May Like-

How to prevent user copying text of a certain div using CSS?

DEMO:
TRY TO SELECT THIS TEXT
HOW TO DO THIS , Simply follow following steps:
  • Create HTML in following format
<html>
<head>
<title>How To Disable Text Copying/Selecting</title>
</head>
<body>
<div class="allin1web">
------YOUR CONTENT------
</div>
</body>
</html>

  • Now Copy following code and paste before </head>.
<style>
.allin1web{
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none; }
</style>

  • Save
  • You are done. 
Keyword: how to disable copy and paste on website protect website content from being copied prevent copying text from website javascript disable copy paste in textbox how to enable copy paste in html how to prevent website copying no copy paste

2 comments:

  1. Hi!!
    Love your post. It's really amazing & helpful too. I like the way you explained everything. By sharing this amazing content, you have solved my problem. Keep sharing :)
    Thank You & Regards
    Ankita



    a2 hosting black friday

    ReplyDelete
  2. thanks for providing this this type of informative post..
    bro you can download
    Latest Crack Softwares for free from clicking
    here

    ReplyDelete

Notice: Don't add "backlink". Text with Link will automatically Removed.