(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 Row Grid Bootstrap Jumbotron Header  |  Bootstrap Layout Jquery  |  Bootstrap Modal Popup Form  |  Bootstrap Login forms Layout  |  Bootstrap Multiselect Option  | 
Copyright (c) 2019, Deluxe-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Terms of Use  |  Write Us
All rights reserved. AI Website Builder | Best AI Website Builder | Free AI Website Builder | Free AI Website Generator | AI web page design generator