What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Disabling Right Clicking in Html?

Pages: (4): « First « 1 [ 2 ] 3 4 » Last »
Disabling Right Clicking in Html?
Author: Message:
M73A
Veteran Member
*****

Avatar


Posts: 3213
Reputation: 37
34 / Male / Flag
Joined: Jul 2004
O.P. RE: Disabling Right Clicking in Html?
quote:
Originally posted by Dempsey
btw it is possible using just html, you use the following code in the body tag
code:
oncontextmenu="return false"


when i do that i just get the words 'oncontextmenu="return false"' show up in the background of the webage.

the javascript works:).

is there a way to get it to work in firefox? the message saying function disabled appears but the right click menu just appers once u click 'OK', lol


theres

quote:
Originally posted by code

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}


which id say is netscape? and theres another for IE AFAIK...whats the code for mozilla firefox? :)

This post was edited on 04-03-2005 at 08:05 PM by M73A.

[Image: lost7ru.gif]
04-03-2005 07:57 PM
Profile E-Mail PM Find Quote Report
Dempsey
Scripting Contest Winner
*****

Avatar
http://AdamDempsey.net

Posts: 2395
Reputation: 53
37 / Male / Flag
Joined: Jul 2003
RE: Disabling Right Clicking in Html?
did you do it like
code:
<body oncontextmenu="return false">
or
code:
<body>oncontextmenu="return false"
It sounds like you did it the second way, but it should be the first, in the body tag
SoundPacks   -   Scripts   -   Skins

that's not a bug, thats an unexpected feature
04-03-2005 08:12 PM
Profile E-Mail PM Web Find Quote Report
Anubis
Elite Member
*****

Avatar
42

Posts: 2695
Reputation: 64
33 / Male / Flag
Joined: Oct 2003
RE: Disabling Right Clicking in Html?
quote:
Originally posted by may73alliance


which id say is netscape? and theres another for IE AFAIK...whats the code for mozilla firefox?
The code I gave you works in Mozilla Firefox, most likely because it uses the Netscape engine...but I haven't found a browser that code didn't support.
[Image: anubis5hq.png]
04-03-2005 08:15 PM
Profile PM Find Quote Report
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: Disabling Right Clicking in Html?
That code really has no use:P, If you keep the right mouse button pressed and press ok, it still shows the menu, and the same buttons are also in the View button next to Edit :P
[Image: 1-0.png]
             
04-03-2005 08:26 PM
Profile PM Web Find Quote Report
Anubis
Elite Member
*****

Avatar
42

Posts: 2695
Reputation: 64
33 / Male / Flag
Joined: Oct 2003
RE: RE: Disabling Right Clicking in Html?
quote:
Originally posted by Ezra
That code really has no use:P, If you keep the right mouse button pressed and press ok, it still shows the menu, and the same buttons are also in the View button next to Edit :P

It's the same with all disable right click scripts, you can just drag the image to the URL bar and copy it...Anti right clicking is really a dumb idea, tbh.
[Image: anubis5hq.png]
04-03-2005 08:32 PM
Profile PM Find Quote Report
M73A
Veteran Member
*****

Avatar


Posts: 3213
Reputation: 37
34 / Male / Flag
Joined: Jul 2004
O.P. RE: Disabling Right Clicking in Html?
quote:
Originally posted by Dempsey
did you do it like
code:
<body oncontextmenu="return false">
or
code:
<body>oncontextmenu="return false"
It sounds like you did it the second way, but it should be the first, in the body tag

yeah i was using the second one :tongue:

quote:
Originally posted by Anubis
quote:
Originally posted by may73alliance


which id say is netscape? and theres another for IE AFAIK...whats the code for mozilla firefox?
The code I gave you works in Mozilla Firefox, most likely because it uses the Netscape engine...but I haven't found a browser that code didn't support.

oh right, just when i previewed the html in firefox i could right click my heart away, lol

[Image: lost7ru.gif]
04-03-2005 08:34 PM
Profile E-Mail PM Find Quote Report
albert
Veteran Member
*****

Avatar

Posts: 2247
Reputation: 42
– / Male / Flag
Joined: Feb 2005
RE: Disabling Right Clicking in Html?
there's a code in javascript : http://www.funkychickens.com


should work out ;-)
04-03-2005 09:07 PM
Profile E-Mail PM Web Find Quote Report
lizard.boy
Veteran Member
*****

Avatar

Posts: 1708
Reputation: 24
33 / Male / Flag
Joined: Mar 2003
RE: Disabling Right Clicking in Html?
bah i hate codes like that.. especially in sites like mess. because the way mess does it you cant center clikc to scroll :/ but then again mess is just fucked with the use of javascript and frames.
04-03-2005 09:46 PM
Profile E-Mail PM Find Quote Report
linx05
Senior Member
****

Avatar
Charlie!!!

Posts: 973
Reputation: 25
38 / Other / Flag
Joined: Feb 2003
Status: Away
RE: Disabling Right Clicking in Html?
Meh. I just use the plugin in Maxthon and it disables all forms of the "disable right click" feature.
For news on anything Tremors, visit Tremors News
End Darko
My blog about my film


Scripts I want to get made:
Taskbar icon to change when contact is typing
04-04-2005 09:20 AM
Profile PM Web Find Quote Report
Pipish
Senior Member
****

Avatar
not really active anymore.

Posts: 916
Reputation: 21
31 / Male / Flag
Joined: Apr 2003
RE: Disabling Right Clicking in Html?
why would you want to disable it , it makes people feel like they have a mac :P unless your protecting something :?
[Image: fcliverpoolfan2xo.gif]
[Image: roosters4yg.jpg]
04-04-2005 09:26 AM
Profile E-Mail PM Find Quote Report
Pages: (4): « First « 1 [ 2 ] 3 4 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On