I tried to use javascript function within the "Title item" of my html javascript menu.
Return to Recent Questions
Q:
I tried to use javascript fuctions for subitem and it worked fine but
not working with the main items (Group or header item), is there a way to
process onclick for the title item in html javascript menu? Thanks again.
You're able to use Javascript for each item, for example:
var tmenuitems = [
["item text", "javascript:your_code_here"]
];
A:
Unfortunately, title items doesn't allow you to use Javascript in the same
way.
But you can do the following:
var tmenuitems = [
["<div onclick='your_code_here'>title text</div>"]
];
Return to Recent Questions
Related:
- May 05, 2009 - I'm wondering if you can use the ASP code within Item Link of the dynamic navigation menu?
- Aug 14, 2009 - I'm trying to simply use API functions to add some properties to my horizontal menu javascript.
- Sep 03, 2009 - Is it possible to use the AJAX-Like technology and dynamic API functions in navigation web site?
- Sep 04, 2009 - How to use javascript calls when the link is clicked in the javascript drag drop?
- Oct 08, 2009 - I use v3.0. I cannot manage to search within the javascript menu select...
- Oct 19, 2009 - Can I move all code for the dhtml drop down menu within the html and not use it as external .js file?
- Nov 01, 2009 - Is it possible that your javascript tree call some javascript on mouseover?
- Nov 08, 2009 - How to call javascript function when the user click on a pulldown menu Items...
- Nov 20, 2009 - Menu cascading won't mouseover and won't open the submenus and I have a javascript error...
- Dec 04, 2009 - I use v3.0. I cannot manage to search within the mouse over menu...
- Jan 18, 2010 - I want to use my own function within menuItems in the dynamic drop down menu item.
|