(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 am not sure if it will do what I want - can I call javascript within the dynamic menu?

Return to Recent Questions


Q: I would love to buy your product BUT, I am not sure if it will do what I want - can I call javascript within the dynamic menu?

For example my old page for disaster recovery we have inserted a URL substitution :

The javascript function is called at the top of the nav page:

<script LANGUAGE = "JavaScript" SRC = "../urlSub.js"> </script>

then the link on the nav menu

<a> href="#" ONCLICK = "urlSubstitution('transco/sheet.asp?stype=1')">Table of Contents </a>
-----------------------------------------------------------------------------------------------------
HOWEVER, Im not sure if this is possible with your product?

A: Yes, it is possible.

Actually you can use your own Javascript code instead standard links and html code inside item text. For example:

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

or

var menuitems = [
["<div onClick='urlSubstitution(\'transco/sheet.asp?stype=1\')'>Table of Contents</div>", ""]
];





Return to Recent Questions

Related:
Bootstrap Jumbotron Header Bootstrap Layout Jquery  |  Bootstrap Modal Popup Form  |  Bootstrap Multiselect Option  |  Bootstrap Row Grid  |  Bootstrap Login forms Layout  | 
Copyright (c) 2019, Deluxe-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Terms of Use  |  Write Us
All rights reserved. website design software | top website builder | top web builder | wowslider.com | css3 menu