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

    How to use javascript calls when the link is clicked in the menu web site?

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 menu web site?

<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


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

Copyright (c) 2012, DHTML-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Write Us
All rights reserved. homepage baukasten | website designer | free icons | bootstrap navbar examples | bootstrap button styles