|
|
How to call javascript function when the user click on a pulldown menu javascript Items...
Return to Recent Questions
Q:
Very interested in your product, I want to know, before buy, if it is possible to
call javascript function when the user click on a [lw] Items?
You have this example, but I want the possibility to call a
javascript function in the client side :
var menuItems = [
[text, "javascript:alert('Hello, world!')", icon1, icon2],
];
Is it possible, if yes could you give the sample?
Thank you for the answer.
A:
You're able to use Javascript for each item, for example:
var menuitems = [
["item text", "javascript:your_code_here"]
];
Unfortunately, you can't assign onmouseover/onClick event to each pulldown menu javascript item.
However, you can achieve this by using standard html objects within
items, for example:
var menuitems = [
["<div onClick='your_code_here'>item text</div>", "index.html"]
];
Unfortunately we don't have such example.
Return to Recent Questions
Related:
- Jun 08, 2009 - Is it possible to call JScript functions from website drop down menu?
- Jun 16, 2009 - I want to add a javascript link with onclick event to the windows popup menu
- Sep 04, 2009 - How to use javascript calls when the link is clicked in the show popup menu?
- Oct 31, 2009 - How to call my own function in the dhtml menu build?
- Nov 01, 2009 - Is it possible that your javascript menu navigation call some javascript on mouseover?
- Nov 05, 2009 - I tried to use javascript function within the "Title item" of my horizontal menus.
- Nov 15, 2009 - I need to be able to execute some javascript code when I click on a rollover dropdown menu...
- Dec 20, 2009 - Is it possible to set menu and button maker up so the javascript function runs when clicking a tab?
- Dec 25, 2009 - You have a right click in pull down menu html, is this function available in DHTML Menu?
- Jan 22, 2010 - How to change the font color if the user click on vertical menu javascript?
- Feb 20, 2010 - Is there any way through script to call the function in down menu java script?
|