(c) 2007, DHTML-Menu.com
 
   
   
  Support
  Recent Questions
  Write To Support
 

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

Return to Recent Questions


Q: Can we set the link of a horizontal menu using item to a javascript method?


A: You can use your own javascript functions in the horizontal menu using 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')", , , , ,]
];





Return to Recent Questions

Related:
   
Copyright (c) 2012, DHTML-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Write Us
All rights reserved. free website builder | bootstrap menu | creador de sitios web | best website maker | free web editor