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: Thursday February 8 2018 - 06:02:42

menu code is being called twice


Poster: rfkarlin
Dated: Wednesday May 29 2002 - 20:35:43 BST

I have created a menu whose items call javascript functions. However, I have found that the javascript functions are being called twice. Does anyone know why this might happen?

Here is my menu code:

addmenu(menu=["edit",
,,,1,"",menu_properties,,"left",effect,,1,,,,,,,,,,
,"<IMG src='<%=imageRoot%>topframe_sub_print_off.gif' border=0>","javascript:printIt(); swapimage=<%=imageRoot%>topframe_sub_print_on.gif;",,,1
,"<IMG src='<%=imageRoot%>topframe_sub_back_off.gif' border=0>","javascript:goSCSList(); swapimage=<%=imageRoot%>topframe_sub_back_on.gif;",,,1
])

Thanks,

Robin