This week's book / license giveaways are in the JDBC and Relational Databases and Java in General forums.
We're giving away four copies each of PostGIS in Action and Java Advanced Topics Training and have the authors on-line!
See this thread and this one for details.
The moose likes HTML, CSS and JavaScript and the fly likes on hiding right click menu 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 "on hiding right click menu" Watch "on hiding right click menu" New topic
Author

on hiding right click menu

christine clarin
Ranch Hand

Joined: Feb 05, 2005
Posts: 106
hello, i need to use the right click such that it opens a new window...and disabling my leftclick at the same time. so far, my code works:

if (event.button == 1) {
alert ("left disabled");
}
else {
openWindow();
}

but what I don't know is how to lose the right click menu which appears whenever i use right click, the small box which has "back, forward, save page as, back etc... " how do i hide that? thank you!! looking forward to your replies!
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10417
    
175

Is this what you want:



[My Blog] [JavaRanch Journal]
christine clarin
Ranch Hand

Joined: Feb 05, 2005
Posts: 106
worked perfectly! thanks!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: on hiding right click menu