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


 

    Is there a way we can add javascript behaviors to the sliding dhtml menu actions?

Return to Recent Questions


Q: Is there a way we can add javascript behaviors to the sliding dhtml menu actions?
For example, is there a way we can add an onClick function to a menu item
(eg, onClick="return MyFunction( )" ) so that we can catch and process key events?

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

var menuitems = [
["
item text
", ""]
];

You can use your own Javascript code instead standard links. For example:

var menuItems = [
["text", "javascript:your_code_here"]
];

Try that.





Return to Recent Questions

Related:
Exceptional Bootstrap Mobile Template Set Awesome Mobile-friendly Website Design Review  |  Prime Simple Website Builder Review  |  Magical HTML Bootstrap Slider With Text Templates  |  How to Make a Webpage - Step by Step Tutorial  |  Fine Bootstrap Page Templates - Video List  | 
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 | AI Website Generator | AI web design generator | AI website design generator