aspose file tools*
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: 10266
    
168

Is this what you want:



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

Joined: Feb 05, 2005
Posts: 106
worked perfectly! thanks!
 
 
subject: on hiding right click menu