(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:
Most Suitable 11 Best Wix Alternatives Website Creators Best Free QR Code Generators 2023  |  Greatest 11 Free Wordpress Alternatives Tools  |  First-rate Responsive Website Builder Software - Beginner-Friendly Guide  |  Effective Link in Bio Services  |  How To Embed Instagram Feed  | 
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 | Best AI Website Builder | Free AI Website Builder | Website Generator AI | AI web page design generator