Click here to Skip to main content
14,829,981 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:


Does a Web-programming technologies to prevent, for security reasons, some menu items in the browser. For example: "Save as ..." or "Print"? Thanks.


No, that is absolutely impossible, and if some javascript COULD do that, it would be trivial to inject javascript to kill it.  Any attempt to kill the right mouse button will also only stop the most casual of users, anyone else can beat it.  If you send it to the browser, the client is going to get it if they want it.

No.. Its not possible to prevent any command of browser. One thing that you can do is just to disable the features just not showing them to the user.

Just open the page in a new window using (most of the banking sites does that) with all toolbar, menubar etc hidden and disable context menu.

You can take a look into this on how to disable Right - click context menu from your website.[^]

Also, most of the browser doesnt allow to hide addressbar. So dont show any sensitive information as querystring.

I hope this will partially solve your issue.... :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900