Wednesday, September 5, 2012

Prevent your webpage from copy and paste



To prevent your webpage from copy and paste, you can use following CSS style in your HTML body:
     <body  style="user-select: none; -moz-user-select: none; -webkit-user-select: none; 
   -o-user-select: none;">
        Your body content here
    </body>
For only part of the content, using div tag instead of body tag,  for example:

     <div  style="user-select: none; -moz-user-select: none; -webkit-user-select: none; 
   -o-user-select: none;">
        Here select, copy and past disabled.
    </div>
Demo:
Here select, copy and past disabled.

No comments:

Post a Comment