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: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:22

no href as URL but only Javascript


Poster: Bramsa
Dated: Friday August 1 2003 - 16:54:38 BST

Hi there,

On my site I use a DIV or a SPAN with on OnClick to call a Javascript function instead of a <a href=> for links. I use this method because a page caled with <a href> with Javascripts does never finish loading.

Is it possible to only call a Javascript function when a user clicks on a menu-item?

Example:
addmenu(menu=["testing",
,,120,1,"",style1,,"left",,,,,,,,,,,,,
,"Test","myfunction(1)",,,1])

I know I can place 'javascript:' before 'myfunction' but then it's called as a href and I have the problem as mentioned above.

Thanks,

Greetings, Bram.


Poster: fredlongworthhighschool
Dated: Monday August 4 2003 - 13:59:12 BST

I think your question is in the wrong part of the forum. This is V5 Feature Requests and Suggestions.

I think your code is V3, so you need to post it in Version 3 Help & Assistance