Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Wednesday July 18 2012 - 06:07:33

calling javascript function from menu


Poster: kient
Dated: Wednesday July 3 2002 - 6:36:26 BST

I want to call javascript function from the menu.
Usually a used :
Code:
<a href="javascript:downloaddata('main.php');">

the problem are in the single quotes, the function must use single quotes.
I already try with :
Code:
javascript:downloaddata(\'main.php\');
--> error
Code:
javascript:downloaddata(\\'main.php\\');
--> error too.

Any one can help me?

Thanks in advance :D


-=Kient=-


Poster: Andy
Dated: Wednesday July 3 2002 - 9:25:05 BST

Try escaped double quotes.

Code:
<a href="javascript:downloaddata(\"main.php\");">


Cheers
Andy