Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > FAQ Topic - How do I disable the right mouse button?

Reply
Thread Tools

FAQ Topic - How do I disable the right mouse button?

 
 
FAQ server
Guest
Posts: n/a
 
      05-04-2007
-----------------------------------------------------------------------
FAQ Topic - How do I disable the right mouse button?
-----------------------------------------------------------------------

The oncontextmenu intrinsic event is the only safe and reliable
method. Of the other approaches often presented, most depend on
an alert box interrupting the process and rarely work. Note that
oncontextmenu is a non-standard event and is not supported on
all browsers.
` <body oncontextmenu="return false"> `


===
Postings such as this are automatically sent once a day. Their
goal is to answer repeated questions, and to offer the content to
the community for continuous evaluation/improvement. The complete
comp.lang.javascript FAQ is at http://jibbering.com/faq/index.html.
The FAQ workers are a group of volunteers.

 
Reply With Quote
 
 
 
 
Yanick
Guest
Posts: n/a
 
      05-06-2007
On 4 mai, 19:00, "FAQ server" <javascr...@dotinternet.be> wrote:
> -----------------------------------------------------------------------
> FAQ Topic - How do I disable the right mouse button?
> -----------------------------------------------------------------------
>
> The oncontextmenu intrinsic event is the only safe and reliable
> method. Of the other approaches often presented, most depend on
> an alert box interrupting the process and rarely work. Note that
> oncontextmenu is a non-standard event and is not supported on
> all browsers.
> ` <body oncontextmenu="return false"> `
>
> ===
> Postings such as this are automatically sent once a day. Their
> goal is to answer repeated questions, and to offer the content to
> the community for continuous evaluation/improvement. The complete
> comp.lang.javascript FAQ is athttp://jibbering.com/faq/index.html.
> The FAQ workers are a group of volunteers.


Besides... if your intentions are to prevent the user from seeing the
code behind the page, in FF you only have to press CTRL+U to view
source (or in the menu View > Source) ; in IE you go in the cache
folder.... Moreover, it is even much more frustrating to users
visiting the page, and accidently (or not?) right-clicking the mouse.
And finally, trying to "hide your code" makes it even more interesting
(and challenging) to break security measures... disabling the right
click is pointless, and such a waste of time. period.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FAQ Topic - How do I disable the right mouse button? FAQ server Javascript 0 07-04-2007 11:00 PM
FAQ Topic - How do I disable the right mouse button? FAQ server Javascript 9 03-07-2007 12:54 AM
FAQ Topic - How do I disable the right mouse button? FAQ server Javascript 0 01-03-2007 12:00 AM
FAQ Topic - How do I disable the right mouse button? FAQ server Javascript 0 11-06-2006 12:00 AM
FAQ Topic - How do I disable the right mouse button? FAQ server Javascript 0 09-08-2006 11:00 PM



Advertisments