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


 

    How can I assign onClick event to css horizontal drop down menu?

Return to Recent Questions


Q: Hi there ... how do I add in the following javascript code so an exit pop doesn't go off:

onClick="exit=false;"

I read this page, but it didn't work

http://deluxe-menu.com/javascript-link-menu-support.html#

A: 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 AI website generator and creator - create a website with AI. Best AI Website Builder - Create Website Design with AI  |  AI website builder and generator - AI-driven websites, limitless possibilities .  |  Best Website Builder for Digital Marketing Agencies, Travel Agencies, Interior Designs  |  List of 15 AI Website Creators and Generators - Reviews, Comparison, Pros & Cons.  |  List of 20 AI Code Builders and Generators - Code generated faster with AI.  | 
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 | AI Website Builder | Free AI Website Generator | AI Website Generator | Website Generator AI