calling javascript function from menu

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply
kient
Beginner
Beginner
Posts: 1
Joined: Tue Jul 02, 2002 8:29 am

calling javascript function from menu

Post by kient »

I want to call javascript function from the menu.
Usually a used :

Code: Select all

<a href="javascript:downloaddata('main.php');">
the problem are in the single quotes, the function must use single quotes.
I already try with :

Code: Select all

javascript:downloaddata(\'main.php\');
--> error

Code: Select all

javascript:downloaddata(\\'main.php\\');
--> error too.

Any one can help me?

Thanks in advance :D


-=Kient=-
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Try escaped double quotes.

Code: Select all

<a href="javascript:downloaddata(\"main.php\");">
Cheers
Andy
Post Reply