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


 

    I have function "confirmLogout()" that it returns true or false. How to use this function in the mouseover drop menu?

Return to Recent Questions


Q: I have function "confirmLogout()" that it returns true or false. If it is false, the function does not make nothing. If it's true, I need to direct for the page "goout.jsp". How to use this function in the mouseover drop menu?

function confirmLogout() {
if(confirm('It really desires to leave? ?')) {
return true;
} else {
return false;
}
}

A: Actually you can use your own Javascript code instead standard mouseover drop menu links. For example:

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

or

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






Return to Recent Questions

Related:
Bootstrap Label Input Bootstrap Clearfix Style  |  Bootstrap Sidebar Dropdown  |  Bootstrap Progress bar Jquery  |  Bootstrap Slider Usage  |  Bootstrap Header Example  | 
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 Builder | AI Website Maker | Free AI Website Generator | AI web page design generator