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.