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
|