Welcome to Dream.In.Code
Become an Expert!

Join 149,880 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,336 people online right now. Registration is fast and FREE... Join Now!




Disable Right Click Using HTML/CSS

 
Reply to this topicStart new topic

Disable Right Click Using HTML/CSS, HTML/CSS Help

timcaywood
14 Jan, 2007 - 06:39 PM
Post #1

New D.I.C Head
*

Joined: 10 Jan, 2007
Posts: 7


My Contributions
HOW CAN I DISABLE RICK CLICK USING HTML????


Ive found several ways to do this using Javascript, but I cant find a code for HTML. Im trying this on Myspace which has Javascript disabled. If it isnt possible thats fine, just thought Id ask before I give up.

Ive read a prior post on this subject and I am aware that a user simply has to view the source to find what they need. Im actually only doing this to see if I can... Im fairly new to HTML and Im enjoying trying all the different ways to manipulate it. I appreciate any help you can give me.



Thanks


User is offlineProfile CardPM
+Quote Post

Amadeus
RE: Disable Right Click Using HTML/CSS
14 Jan, 2007 - 07:20 PM
Post #2

g++ -o drink whiskey.cpp
Group Icon

Joined: 12 Jul, 2002
Posts: 12,351



Thanked: 51 times
Dream Kudos: 25
My Contributions
As far as I am aware, you cannot disable a mouse using html. Mouse click are events that occur, and html does not allow for event processing on a client machine.
User is online!Profile CardPM
+Quote Post

BetaWar
RE: Disable Right Click Using HTML/CSS
14 Jan, 2007 - 10:34 PM
Post #3

#include <soul.h>
Group Icon

Joined: 7 Sep, 2006
Posts: 2,293



Thanked: 101 times
Dream Kudos: 1275
My Contributions
Unless the client has modified some of their explorer files they will always have the ability and menu for a right click event, unless you have javascript telling the event to return with nothing. Sadly that is what must be done here as HTML has no authority over the user's computer, only the format in which they see the page that has loaded in front of them.

Sorry for this, however javascript has been disabled there for the same reason it is disabled on any other site I know of, to stop people from redirecting their viewers to other sites or pages.
User is offlineProfile CardPM
+Quote Post

timcaywood
RE: Disable Right Click Using HTML/CSS
15 Jan, 2007 - 12:51 AM
Post #4

New D.I.C Head
*

Joined: 10 Jan, 2007
Posts: 7


My Contributions
music.gif Thanks For The Replies!

I antisipated these replies, but I figured it would be worth a shot to ask. Thanks for reading.

Tim



User is offlineProfile CardPM
+Quote Post

snoj
RE: Disable Right Click Using HTML/CSS
15 Jan, 2007 - 06:20 PM
Post #5

Fell off the face of the earth
Group Icon

Joined: 31 Mar, 2003
Posts: 3,325



Thanked: 9 times
Dream Kudos: 750
My Contributions
Also, "disabling" right clicks doesn't and can't stop anyone since there are keyboard shortcuts and not to mention the menus from the browser (File, View, Bookmarks/Favorites, etc.).
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 11:57AM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month