menu drop down by Deluxe-Menu.com

DHTML Faq » Can we set the link of a menu tree javascript item to a javascript method?

Can we set the link of a menu tree javascript item to a javascript method?

Filed under: Recent Posts — Tags: , , — admin @ June 16, 2009 at 8:25 am

Q:

Can we set the link of a menu tree javascript item to a javascript method?

A:

You can use your own javascript functions in the menu items.

You should paste “javascript:some_function()” into item’s link field, for example:

var menuItems = [
["text", "javascript:your_function(...)", ...]
];

var menuItems = [
["item text", "javascript:alert('Hello World')", , , , ,]
];

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment