HOW TO DISABLE RIGHT CLICK

Go down

HOW TO DISABLE RIGHT CLICK

Post by papakanmo on January 19th 2012, 1:18 pm

HOW TO DISABLE RIGHT CLICK IN IFRAME??

avatar
papakanmo
Forumember

Male Posts : 93
Reputation : 1
Language : English/Tagalog

Back to top Go down

Re: HOW TO DISABLE RIGHT CLICK

Post by Guest on January 19th 2012, 1:48 pm

This works?
Code:
<script language="Javascript1.2">

function disableclick(e) {
if (document.all) {
if (event.button==2||event.button==3) {
if (event.srcElement.tagName=="iframe"){
return false;
}
}
}
else if (document.layers) {
if (e.which == 3) {
return false;
}
}
else if (document.getElementById){
if (e.which==3&&e.target.tagName=="iframe"){
return false
}
}
}

function associateimages(){
for(i=0;i<document.images.length;i++)
document.images[i].onmousedown=disableclick;
}

if (document.all)
document.onmousedown=disableclick
else if (document.getElementById)
document.onmouseup=disableclick
else if (document.layers)
associateimages()
</script>
Add in Announcements and don't forget to enable Announcements. Smile

Guest
Guest


Back to top Go down

Re: HOW TO DISABLE RIGHT CLICK

Post by papakanmo on January 19th 2012, 2:02 pm

i still can right click in facebook chatroom -_-
avatar
papakanmo
Forumember

Male Posts : 93
Reputation : 1
Language : English/Tagalog

Back to top Go down

Re: HOW TO DISABLE RIGHT CLICK

Post by LGforum on January 19th 2012, 4:20 pm

May I ask, why do you want to disable right click?
It will only serve to annoy your visitors.
avatar
LGforum
Hyperactive

Male Posts : 2263
Reputation : 260
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Re: HOW TO DISABLE RIGHT CLICK

Post by APE on January 19th 2012, 7:30 pm

@papakanmo wrote:i still can right click in facebook chatroom -_-
FaceBook is nothing to do with our forum but just a add on to it
we have no rights over the use of facebook and there for any Mods you use to remove right click on your forum will only work on your forum not facebook,

Right now I'm sorry but i Don't think this can be done SORRY Sad

~Ape~
avatar
APE
Administrator
Administrator

Male Posts : 12315
Reputation : 1279
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum