How To Disable selection, Copy in your Web Page Using CSS

Posted by Jeetu_choudhary12 under CSS 3 category on | Points: 40 | Views : 3627
//Some Times we developers requirements that my data should not be copy from browser. So user can use these given below css scirpt.
//The Import thing in this codes is that this code will work on mozila and IE both.
<style type="text/css">
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-o-user-select: none;
user-select: none;


How to Apply given Below:
<body ondragstart="return false;"

onselectstart="return false;" class="protectedTex

Comments or Responses

Login to post response