(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:
Top 53 Killer HTML Templates List Top 54 Brand New jQuery Themes List  |  AMP Mobile Page Template Review  |  Best 50 Inspirational and Beautiful HTML Themes Collection  |  Best 46 Fresh CSS Themes Collection  |  Top 41 Wonderful CSS3 Templates Collection  | 
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 | Free AI Website Generator | AI Website Generator | AI web design generator | AI website design generator