(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:
Free and Easy Website Builder Offline Mobile Website Builder Software  |  Bootstrap Alert Colors  |  Best 18 Landing Page Bootstrap Theme Roundup  |  Bootstrap Table Template  |  Top Mindblowing HTML Image Slideshow Ideas  | 
Copyright (c) 2019, Deluxe-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Terms of Use  |  Write Us
All rights reserved. Best AI Website Builder | Free AI Website Builder | Free AI Website Generator | Website Generator AI | AI web design generator