Get Browser Context Menu Items using Javascript

Is there a way to use javascript to programmatically get the context menu items that are available when a right click event is generated within a browser.

For example in Chrome be able to have an array filled with the following: Back,Forward,Reload,Save as, Print, Translate to English, View page source, View page info and so on.

Is it possible to get such values without the need for generating a right click event so the context menu doesn't appear on the user's browser?



No, there is no way to get them. This would be a security issue, as extensions can add items to that menu and if you can get the menu entries with JavaScript, you can figure out if user is using a particular extension. The only thing you are allowed to do with the context menu is to stop it from showing. Hope that helps.

Need Your Help

JQuery DataTables - Set one column to take extra width

jquery css table datatables

I am curious if there is a way to set one of the columns to 'absorb' any extra width. For instance, I want all the columns to have auto width to the smallest possible width that the data within all...

SCHEME: Remove sub-lists

scheme racket

I haven't had any luck creating function that removes sublists.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.