The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

HOW TO DISABLE RIGHT CLICK

3 posters

Go down

HOW TO DISABLE RIGHT CLICK Empty HOW TO DISABLE RIGHT CLICK

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

HOW TO DISABLE RIGHT CLICK IN IFRAME??

papakanmo
papakanmo
Forumember

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

Back to top Go down

HOW TO DISABLE RIGHT CLICK Empty Re: HOW TO DISABLE RIGHT CLICK

Post by Guest 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
avatar
Guest
Guest


Back to top Go down

HOW TO DISABLE RIGHT CLICK Empty Re: HOW TO DISABLE RIGHT CLICK

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

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

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

Back to top Go down

HOW TO DISABLE RIGHT CLICK Empty Re: HOW TO DISABLE RIGHT CLICK

Post by LGforum 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.
LGforum
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

HOW TO DISABLE RIGHT CLICK Empty Re: HOW TO DISABLE RIGHT CLICK

Post by Ape 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~ HOW TO DISABLE RIGHT CLICK Ascaso
Ape
Ape
Administrator
Administrator

Male Posts : 19084
Reputation : 1988
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