Using javascript onclick function when menu item clicked

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
jekkara
Beginner
Beginner
Posts: 3
Joined: Fri Aug 29, 2003 5:11 pm

Using javascript onclick function when menu item clicked

Post by jekkara »

Has anyone included a form submission onclick of a menu item?

Any help on this matter is appreciated.

Thanks,
Jessica
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

to catch an onclick event, in the url of a menu item you use the javascript: flag, much like how you get a <a> tag to execute javascript.
i.e....

aI("text=Menu Item;url=javascript:checkItems();;");


Is that what you were looking for ?
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
jekkara
Beginner
Beginner
Posts: 3
Joined: Fri Aug 29, 2003 5:11 pm

Post by jekkara »

That did it. Thank you.
Post Reply