(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 I call javascript function when the user click on a items in the horizontal drop down menu?

Return to Recent Questions


Q: Very interested by your product.I want to know, before buy, if I can call javascript function when the user click on a items in the horizontal drop down menu?

A: You're able to use Javascript for each item, for example:

var menuitems = [
["item text", "javascript:your_code_here"]
];

Unfortunately, you can't assign onmouseover/onClick event to each item.
However, you can achieve this by using standard html objects within items, for example:

var menuitems = [
["<div onClick='your_code_here'>item text</div>", "index.html"]
];



Return to Recent Questions

Related:
Best Website Builder for Digital Marketing Agencies, Travel Agencies, Interior Designs Best AI website generator and creator - create a website with AI.  |  Best AI Website Builder - Create Website Design with AI  |  Website Builder for Churches, Authors, Consultants, Magazines  |  AI website builder and generator - AI-driven websites, limitless possibilities .  |  List of 15 AI Website Creators and Generators - Reviews, Comparison, Pros & Cons.  | 
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 Generator | AI Website Builder | AI Website Maker | AI web page design generator