I'm trying to expand navigation options of the context menu on certain elements (specifically, h1 and h2 tags)
I want to prevent the browser's default action when right-clicking on those elements.
I found nice information at this page.
However, I couldn't find how to disable the context menu for certain elements. Does someone know how ...
Not that I'm trying to prevent 'View Source' or anything silly like that, but I'm making some custom context menus for certain elements.
EDIT: response to answers: I've tried this:
<a id="moo" href=''> </a>
<script type="text/javascript">
var moo = document.getElementById('moo');
function handler(event) {
event = even...
I'm going to start of by noting that I have next to no python experience.
As you may know, by simply dropping a shortcut in the Send To folder on your Windows PC, you can allow a program to take a file as an argument.
How would I write a python program that takes this file as an argument?
And, as a bonus if anyone gets a chance -- ...
When you long press on something in Android, a context menu comes up. I want to add something to this context menu for all TextViews in the system.
For example, the system does this with Copy and Paste. I would want to add my own, and have it appear in every application.
...
I add this to Registry:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{2559a1f0-21d7-11d4-bdaf-00c04f60b9f0}\shell\Google\command]
@="cmd /c title Google Search&set /p i=Keywords: &call start \"\" \"http://www.google.cn/search?complete=1&hl=zh-CN&q=%%i%%\""
...
What is your favourite programmer's context-menu addition for your Windows machine?
...
I want to add an item to the context menu that appears when I click the right button of the mouse at a selected file in a directory. I don't know how to add it at a specified position of the menu, neither do I know how to separate it with lines above and below it.
Do I need to modify the registry? If so, what should I do?
...
We are programming a web application (not 'just' a web site, but functionality-wise a real application), and have the following discussion for the next release:
our UI designer wants to replace the browser's right-click context menu (showing our own menu where appropriate, or no menu at all) because he wants the web app to be more lik...
I know how to create one from scratch but how do i edit the existing one that Microsoft Project has, keeping what it already has in it intact?
...
I have a custom entry on the Internet Explorer's context menu. I would like to do something with the selected item, for example, run a program that receives that selection as ARGV[1].
For example, if I right click on a file named whatever.zip that is located on my desktop, the following thing should run :
my_binary path\to\desktop\w...
Hi,
I'm writing a app which integrates with windows shell and adds an additional context menu.
And am considering a couple of languages to write it in:
MS .NET - I'd rather not use managed code for this type of app
win32asm - This is my first choice
VC++/C++ - Not sure
So basically its a toss up between assembly and C++ anyone have a...
Hi,
I have been trying to get the Context menus running at some of the sites on the web like http://www.abeautifulsite.net and so forth but every time my menu divs show on the page and right click doesn't work. Is there an example mvc hopefully or a .net project I can download to see how it is working?
Here is what I have in a View ...
I am using Squeak (can't use Pharo), and I have a Morphic application and I wish to add my own custom Context-menu (I don't want to add to or use the Halo menu).
How do I build my menu and make it come up on a right-click (yellowButton, sigh)?
I currently have a CustomMenu and a handlerForYellowButtonDown: which calls the menu startup....
I have the need to trigger the opening of the browser (IE, Firefox, Safari, etc) context-menu via javascript. The problem I am trying to solve, is when an overlaid element is right-clicked, the element below it shows its context menu. So if the top element is a label, when you right click, I need to show the context menu for the input el...
I'm running into the following scenario on some devices: when the use clicks on field and expects an response, instead of properly responding to that click event, the device shows the context menu at the bottom center of the screen.
navigationUnclick and trackwheelUnclick
From what I've read, I can override navigationUnclick and trackwh...
Hi, In my application has a ListView. When long press on item the "Context Menu" will appear. I want to check the data ID, then set disable/enable to my Context Menu "Items". I can not find out the function like getMenuInfo() or something like this.
@Override
public void onCreateContextMenu(ContextMenu menu , View v, ContextMenuInfo me...
My Vista Home Basic SP2 machine misses the relevant Registry values,
described under Page 171 of the tutorial (latest and relevent edition)
The registry keys which hold the information on which context menus to show
are HKEY_CURRENT_USER\Software\TortoiseSVN\ContextMenuEntriesMaskLow and
HKEY_CURRENT_USER\Software\TortoiseSVN\Con...
I am trying to add two new entries to the context menu, one for images and one for anchors. I am using 0x2 for images 0x20 for anchors they are displayed correctly but when there is an image with a link only the image link is showed they do different things so i would like both items to show up?
...
I used context menu plugin and was able to make if functional on the page I currently developing. At right click, I want to run a code (such as to highlight a selected row or column) before showing the context menu. Where can I insert the code. I used the plugin on this link.
http://www.trendskitchens.co.nz/jquery/contextmenu/
My html:
...
Does any one tried to successfully hide the context menu at blur event? What I want to do is to hide the customized right click menu when the mouse is not positioned inside the context menu div.
This uses the jquery context menu plugin.
...