(c) 2007, DHTML-Menu.com
 
   
   
  Support
  Recent Questions
  Write To Support
 

    How to use javascript calls when the link is clicked in the dhtml floating menu?

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 dhtml floating menu?

<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:
   
Copyright (c) 2012, DHTML-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Write Us
All rights reserved. creador de sitios web | criador de site gratis | easy website builder | bootstrap navigation menu | bootstrap navbar examples