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