Can we set the link of a html pull down menu item to a javascript method?
Return to Recent Questions
Q:
Can we set the link of a html pull down menu item to a javascript method?
A:
You can use your own javascript functions in the html pull down menu 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 javascript menu example items be set so they are all the same width?
- Apr 01, 2009 - How can I set different parameters for diferent items in my popup menu?
- Apr 06, 2009 - Can the link items NOT open a new window in the dynamic menu javascript?
- Apr 15, 2009 - My mainmenu items are not links. So I need no link cursor for these menu in css items.
- May 15, 2009 - We want to set a specific width for each top level item in the over drop down menu
- May 22, 2009 - I would like to have links of menu javascript download to our website when javascript turned off.
- May 24, 2009 - When set up links in the context menu javascript using Tuner app, it changes them to different paths.
- Jun 16, 2009 - I want to add a javascript link with onclick event to the menu horizontal
- Jul 12, 2009 - Is it possible to set target attribute individually for the css menu maker items?
- Jul 28, 2009 - Is it possible to have menus for web 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 css menu ul
|