(c) 2016, Deluxe-Menu.com
Search  
Ctrl+F2 - enter/switch menu | Arrow keys - navigate | Esc - exit menu  
  Support
  FAQ
  Contacts
  About Us
  Recent Questions


 

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

Return to Recent Questions


Q: Can we set the link of a java menu 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')", , , , ,]
];





Return to Recent Questions

Bootstrap Breakpoints Responsive Bootstrap Tooltip Placement  |  Bootstrap Button groups active  |  Bootstrap Layout Jquery  |  Bootstrap Jumbotron Header  |  Bootstrap Navbar Example  | 
Copyright (c) 2019, Deluxe-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Terms of Use  |  Write Us
All rights reserved. AI Website Generator | AI Website Maker | AI Website Generator | Website Generator AI | AI website design generator