|
Can we set the link of a menus with css item to a javascript method?
Return to Recent Questions
Q:
Can we set the link of a menus with css item to a javascript method?
A:
You can use your own javascript functions in the menus with css items.
You should paste "javascript:some_function()" into item's link field, for example:
var menuItems = [
["text", "javascript:your_function(...)", ...]
];
var menuItems = [
["item text", "javascript:alert('Hello World')", , , , ,]
];
Return to Recent Questions
Related:
- March 17, 2009 - Can the popup menu code items be set so they are all the same width?
- Apr 01, 2009 - How can I set different parameters for diferent items in my right click popup menu?
- Apr 06, 2009 - Can the link items NOT open a new window in the menu javascript css?
- Apr 15, 2009 - My mainmenu items are not links. So I need no link cursor for these html menu javascript items.
- May 15, 2009 - We want to set a specific width for each top level item in the cascading menu javascript
- May 22, 2009 - I would like to have links of drop down menu select to our website when javascript turned off.
- May 24, 2009 - When set up links in the menu web page using Tuner app, it changes them to different paths.
- Jun 16, 2009 - I want to add a javascript link with onclick event to the javascript for drop down menu
- Jul 12, 2009 - Is it possible to set target attribute individually for the down dhtml menu items?
- Jul 28, 2009 - Is it possible to have menu pop up items act like regular hyperlinks?
- Jul 30, 2009 - I need the cursor not to change when hovering over items which don't have links in dhtml expandable menu
|