I do not have the code on me...

However this also applies to the left click as well, and doing the left
click is great for applications where highlighting text is an annoyance and
distraction.


Anyway when the document first runs, there are event handlers for the click
of the mouse. All you need to do is return false on them.

window.onload = function() {
  document.onselectstart = function() {return false;} // ie
  document.onmousedown = function() {return false;} // mozilla
}

You will need to modify this to work with the RMB though.



Andrew Scott
Senior Coldfusion Developer
Aegeon Pty. Ltd.
www.aegeon.com.au
Phone: +613  9015 8628
Mobile: 0404 998 273


-----Original Message-----
From: Scott Raley -ITC [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 18 December 2007 2:12 AM
To: CF-Community
Subject: disable right click

anyone have any simple js code or something to disable right clicks in a
browser that they trust and have used and can share it with me?




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Community/message.cfm/messageid:248537
Subscription: http://www.houseoffusion.com/groups/CF-Community/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5

Reply via email to