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

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

Return to Recent Questions


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


A: You can use your own javascript functions in the menu in javascript 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. bootstrap carousel | parallax scrolling | bootstrap gallery | free website generator | bootstrap dropdown menu