File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes onContextMenu Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "onContextMenu" Watch "onContextMenu" New topic


Arya Devan

Joined: Feb 07, 2006
Posts: 28
hi all ,

i m facing a problem in my browser. in my body tag i have included OnContextMenu = "return false" stil .. it allows me to right click in my web page ..

wat mite b the mistake ??

Thanx in advance..

Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
Most browsers have a setting that does not let you override this function since people actually do use it for navigation and such.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63868

wat mite b the mistake ??

Arya Devan, JavaRanch is a community of people from all over the world, many of who are not native English speakers. While using abbreviations like "u" instead of spelling out "you" is convenient when text messaging your friends on a cell phone or in a chat room, it presents an extra challenge to those that are already struggling with English. Additionally, such shortcuts may confound automated translation tools that patrons of the Ranch may be making use of.

I would like to ask for your help in making the content of JavaRanch a little easier to read for everybody that visits here by not using such abbreviations.

Please read this for more information.

JavaRanch Sheriff

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: onContextMenu
It's not a secret anymore!