|
|
|
How to use javascript calls when the link is clicked in the css dropdown menus?
Return to Recent Questions
Q:
["item text", "javascript:your_code_here", ...]
Javascript executes when the link is clicked it is not the link itself.
Below is what I usually use and how would I incorporate that in the css dropdown menus?
<a
onclick="NewWindow(this.href,'name','490','400','yes');return
false;"
href="web/equipment/hydraulic_truck.htm">
A:
I'm not sure I understand you.
You can use
NewWindow(this.href,'name','490','400','yes');
function call in an item's link:
["text", "javascript:NewWindow(url,'name','490','400','yes');"]
But if you don't want to use this method, you can just insert <a> </a> into an item's text.
Return to Recent Questions
Related:
- March 12, 2009 - I don't understand, how can change place of the icon in button context menu...
- March 13, 2009 - Now we are having the "Incorrect Copyright" on our menus dhtml...
- March 14, 2009 - I am having a problem with css styles in the web navigation menu.
- March 14, 2009 - How do I enable javascript on the new browser, so I can see my down menu html code?
- March 15, 2009 - I have problems with transitional effects in Firefox in the java script tree menu...
- March 16, 2009 - Is there any way to keep a vertical menu dhtml lit up when going to another page?
- March 16, 2009 - How can I change item width in the Vista templates in the dhtml pulldown menu?
- March 18, 2009 - I am getting a Javascript error, when accessing any of the menu javascript.
- March 19, 2009 - How to get the transparent drop down menu to highlight and stay on the page you're viewing?
- March 19, 2009 - I need that the dhtml menu free loads pages into an iFrame.
- March 20, 2009 - Links don't work in the menu dynamique dhtml. How can I correct this?
|