(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

Mobile-friendly Web Page Themes Review Responsive Site Theme  |  Mobile Page Layouts Overview  |  Bootstrap Site Themes Review  |  Top 53 Killer HTML Templates List  |  Best 50 Inspirational and Beautiful HTML Themes Collection  | 
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 Builder | AI Website Maker | AI Website Generator | Website Generator AI | AI website design generator