• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

on hiding right click menu

 
christine clarin
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this what you want:

 
christine clarin
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
worked perfectly! thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic