This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to Disable Right Click in browser window using javascript


On Sun, Mar 17, 2002 at 11:52:21AM -0800, iva karr wrote:
> Disabling the right click in IE 6 is easier, but if you are looking for a
> cross-browser solution, try the js bellow.
> Note: it's buggy in NS 6 - the right click is caught, but the right click
> menu still shows up even though we returned false, there may be a way to
> cancel the event bubble, but I haven't spent time looking into this.

And I would add that -- as you may know -- any skilled user can enable
right-clicking just by turning off javascript. You might then want to
insert logic that prevents the page from displaying properly when Java-
script is turned off. But a clever person can find a way around that, too.
In short, these Javascript hacks are not a very good way to protect your
data.
-- 
Matt Gushee
Englewood, Colorado, USA
mgushee@havenrock.com
http://www.havenrock.com/

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]