The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

HOW TO DISABLE RIGHT CLICK

View previous topic View next topic Go down

HOW TO DISABLE RIGHT CLICK

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

HOW TO DISABLE RIGHT CLICK IN IFRAME??


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 -_-

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.

LGforum
Hyperactive

Male Posts : 2254
Reputation : 254
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~

APE
Manager
Manager

Male Posts : 8317
Reputation : 716
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

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

Back to top Go down

View previous topic View next topic Back to top


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