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: Saturday July 14 2012 - 06:07:12

calling javascript in link


Poster: bpeh
Dated: Monday September 15 2003 - 11:05:53 BST

hi, i am using the frames menu version 3.5.

issit possible for me to call a javascript in the url instead of just typing in the link?

eg. "javascript-code" target=main;sourceframe=main;


Poster: Hergio
Dated: Monday September 15 2003 - 13:01:33 BST

yeah
javascript:doSomething(var1)

or in another frame (IE):
javascript:parent.frames["frameName"].doSomething(var1)

or in another window (IE):
javascript:winName.frames["frameName"].doSomething(var1)


Poster: bpeh
Dated: Monday September 15 2003 - 16:14:53 BST

thanks, I followed the syntax u pointed but still got an error...
---------------
addmenu(menu=["MyMenu", , ,100,1,"",plain_style,,"left",effect,,,,,,,,,,,,
,"Basic English","javascript:alert('hi');",,,1
])

any ideas?