Search code examples
javascriptbrowsernavigationbrowser-history

Disable right click on browser's back and forward button


Is there a way to disable the right click for the back and forward button of the browser using javascript or silverlight? I don't want the users to access the list of histories shown via context menu when you right click on the buttons. I just want the user to be able to left click on the back and forward button to navigate.


Solution

  • As per Pekka's answer. The only suggestion I would make it to open your application/page/whatever in a new window, using the javascript window.open method, and specify the parameters of the new window so the address bar etc are hidden.