|
Is there any way through script to call the function in pull down menus?
Return to Recent Questions
Q:
Is there any way through script to call the function that would
be called if the user clicked a pull down menus?
A:
You're able to use Javascript for each item, for example:
var bmenuitems = [
["item text", "javascript:your_code_here"]
];
Unfortunately, you can't assign onmouseover/onClick event to each item.
However, you can achieve this by using standard html objects within
items, for example:
var bmenuitems = [
["<div onClick='your_code_here'>item text</div>", "index.html"]
];
Return to Recent Questions
Related:
- March 29, 2009 - How could I call a script instead of specifying a link in down menus dhtml myspace?
- Jun 08, 2009 - Is it possible to call JScript functions from javascript onmouseover?
- Jun 12, 2009 - Is there a way to use smartscrolling function for the top right click menu javascript?
- Aug 14, 2009 - I'm trying to simply use API functions to add some properties to my right click popup menu.
- Sep 04, 2009 - How to use javascript calls when the link is clicked in the vertical sliding menu?
- Oct 31, 2009 - How to call my own function in the popup menu example?
- Nov 01, 2009 - Is it possible that your drop down menu horizontal call some javascript on mouseover?
- Nov 05, 2009 - I tried to use javascript function within the "Title item" of my drop down menu using.
- Nov 08, 2009 - How to call javascript function when the user click on a rollover dropdown menu Items...
- Dec 20, 2009 - Is it possible to set dhtml popup menu up so the javascript function runs when clicking a tab?
- September 16, 2010 - I need to know if I can call js functions using the .js file in navigation in web?
|