(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 need to be able to execute some javascript when I click on a javascript menu tab

Return to Recent Questions


Q: Hi there. I am evaluating your tabs before I purchase and I ran into a small problem. If I can get this resolved I am ready to purchase.

I need to be able to execute some javascript when I click on a tab. What I am planning on doing is I want to dynamically set the location.href property of an iFrame located inside of a content div.
I can't figure out how to do it. Any help will go a long way for me to decide to purchase. Thanks!


A: You can use your own javascript functions in the menu items.

You should paste "javascript:some_function()" into item's link field, for example:

["tab text","javascript: window.open('test.html', 'frameName')", ...],
or
["tab text","javascript: getURLForFrame()", ...],

Try that.





Return to Recent Questions

Bootstrap Tooltip Placement Bootstrap Textarea Group  |  Bootstrap Breakpoints Responsive  |  Bootstrap Jumbotron Header  |  Bootstrap Button groups active  |  Bootstrap Navbar 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 | AI Website Builder | AI Website Maker | Free AI Website Generator | AI website design generator