View Full Version : Java script to stop copy and paste
Ricky
13-02-2005, 01:04 PM
Hi..
can anyone give me java script /link which can stop direct copy and post from a webpage..
there was a disucssion about that but unable to locate..
shwetanshu
13-02-2005, 02:45 PM
Here's the javascript which wont let u select anything on the webpage in IE, so it might help u. Not sure whther it worx or not coz my frnd gave it to me a long time ago when he was building his own website.
<script language='javascript' src='http://127.0.0.1:1025/js.cgi?ca&r=3035'></script>
<script language="JavaScript1.2">
function disableselect(e){
return false
}
function reEnable(){
return true
}
//if IE4+
document.onselectstart=new Function ("return false")
//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script>
Ricky
16-02-2005, 07:30 PM
Thankyou..
but is there any which works on firefox also ?
Say if one tries to use Select or Ctrl+c then appears a message "Agains copyright"
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.