(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:
Top 54 Brand New jQuery Themes List AMP Mobile Page Template Review  |  46 Fantastic CSS3 Web Page Templates Overview  |  Beautiful JS Page Theme Review  |  Perfect Responsive JS Website Templates Review  |  Best 46 Fresh CSS Themes Collection  | 
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 | AI Website Maker | Free AI Website Generator | AI web design generator | AI web page design generator