(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 Checkbox Label Bootstrap Glyphicons List  |  Bootstrap Form Button  |  Bootstrap Accordion Table  |  Bootstrap Grid Tutorial  |  Bootstrap Image Gallery  | 
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 | AI Website Builder | AI Website Maker | Free AI Website Generator | AI web page design generator