|
|
|
How to call javascript function when the user click on a menus java script 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 menus java script 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 drag drop javascript?
- Jun 16, 2009 - I want to add a javascript link with onclick event to the javascript for drop down menu
- Sep 04, 2009 - How to use javascript calls when the link is clicked in the collapsing menu?
- Oct 31, 2009 - How to call my own function in the xml dynamic menu?
- Nov 01, 2009 - Is it possible that your web menu maker call some javascript on mouseover?
- Nov 05, 2009 - I tried to use javascript function within the "Title item" of my dynamic menu javascript.
- Nov 15, 2009 - I need to be able to execute some javascript code when I click on a button menu...
- Dec 20, 2009 - Is it possible to set javascript menu horizontal up so the javascript function runs when clicking a tab?
- Dec 25, 2009 - You have a right click in rollover dropdown menu, is this function available in DHTML Menu?
- Jan 22, 2010 - How to change the font color if the user click on popup menu in javascript?
- Feb 20, 2010 - Is there any way through script to call the function in vertical menu css?
|