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


 

    ...when the javascript side menu item is clicked, it'll run a js on the onclick or mouseup event...

Return to Recent Questions


Q: What I mean is I still want the destination page to be static in the var menuitems but when the javascript side menu item is clicked, it'll run a js on the onclick or mouseup event.

Is this possible?

something like:

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

A: You can achieve this by using standard html objects within javascript side menu items, for example:

var menuitems = [
["<div onContextMenu='your_code_here'>item text</div>", ""]
];

Actually you can use any html code within menuItems.






Return to Recent Questions

Related:
Bootstrap List View Bootstrap Input Validation  |  Bootstrap Popover Button  |  Bootstrap Carousel Example  |  Bootstrap Collapse Toggle  |  Bootstrap Icons Button  | 
Copyright (c) 2019, Deluxe-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Terms of Use  |  Write Us
All rights reserved. Mobirise Themes | free icon fonts | best website design software | best web design software | bootstrap modal popup