Is there any way through script to call the function in submenu in html?
Return to Recent Questions
Q:
Is there any way through script to call the function that would
be called if the user clicked a submenu in html?
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 cascade menu javascript myspace?
- Jun 08, 2009 - Is it possible to call JScript functions from navigation menu html?
- Jun 12, 2009 - Is there a way to use smartscrolling function for the top javascript expand menu?
- Aug 14, 2009 - I'm trying to simply use API functions to add some properties to my horizontal scrolling menu.
- Sep 04, 2009 - How to use javascript calls when the link is clicked in the dhtml website navigation?
- Oct 31, 2009 - How to call my own function in the slide down menu?
- Nov 01, 2009 - Is it possible that your pop up menu creator call some javascript on mouseover?
- Nov 05, 2009 - I tried to use javascript function within the "Title item" of my web navigation bars.
- Nov 08, 2009 - How to call javascript function when the user click on a down menus css Items...
- Dec 20, 2009 - Is it possible to set css floating 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 css pop up menus?
|