What i need is when the menu item is clicked in the dhtml context menu, it'll run a js on the onclick or mouseup event.
Return to Recent Questions
Q:
What i need is when the menu item is clicked in the dhtml context menu, it'll run a js
on the onclick or mouseup event.
Is this possible?
A:
You can achieve this by using standard html objects within
items, for example:
var menuitems = [
["<div onContextMenu='your_code_here'>item text</div>", ""]
];
Actually you can use any html code within menuItems.
Return to Recent Questions
Related:
- Sep 06, 2006 - The first item of the html drop down menu stays highlighted.
- Sep 23, 2006 - Is it possible that your menu call some javascript onmouseover event?
- Sep 24, 2006 - If there is a way of establishing the width at "runtime" in the javascript dynamic menu?
- Sep 26, 2006 - Is there a way to change the height of the main buttons in my simple dhtml menu.
- Oct 06, 2006 - Where I can find data.js file for tree javascript menu?
- Oct 26, 2006 - I would like to load an iframe into one of the items in oncontextmenu.
- Oct 27, 2006 - In IE 6.0 and Firefox 1.5.0.4, the submenus of my dhtml dropdown menu are not visible
- Oct 30, 2006 - I don't see on my website dhtml mouseover menu that I saw on my local machine.
- Nov 05, 2006 - The font color doesn't change when I roll over the dhtml side menu
- Nov 06, 2006 - Each item is a different width. Can I do this with your html navigation bar?...
- Nov 14, 2006 - Can dhtml menu script work with tables ?
|