(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

Top 41 Wonderful CSS3 Templates Collection 46 Fantastic CSS3 Web Page Templates Overview  |  Best 46 Fresh CSS Themes Collection  |  Best 50 Inspirational and Beautiful HTML Themes Collection  |  Top 54 Brand New jQuery Themes List  |  AMP Mobile Page Template Review  | 
Copyright (c) 2019, Deluxe-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Terms of Use  |  Write Us
All rights reserved. Free AI Website Builder | Free AI Website Builder | Website Generator AI | AI website design generator | AI web page design generator