Hello all! I have a javascript running on my site at http://www.kayoss.net that disables right clicking (viewing source, saving pictures, etc.) that works beautifully in IE...but not in Firefox. Does anyone know of a solution?
Kayoss
0
Newbie Poster
Recommended Answers
Jump to Post1st, the script calls for an argument to be passed in, it appears to be the Event object, yet your call doesn't pass anything in.
Also, the script definition should properly be inside the head section. Lastly, it's a bad idea, in my opinion, to attempt to alter or …
Jump to PostDisabling right click is done using a single statement.
<body oncontextmenu="return false;">
This works for both the mouse and the keyboard in all modern browsers except Opera (which doesn't allow you to block right click).
All 6 Replies
tgreer
189
Made Her Cry
Team Colleague
felgall
2
Junior Poster in Training
ryansmith
0
Newbie Poster
mail2saion
14
Posting Whiz in Training
malavaraja
0
Newbie Poster
fxm
23
Posting Pro
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.