no href as URL but only Javascript

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Bramsa
Beginner
Beginner
Posts: 1
Joined: Fri Aug 01, 2003 4:48 pm

no href as URL but only Javascript

Post by Bramsa »

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.
User avatar
fredlongworthhighschool
Mega Advanced
Mega Advanced
Posts: 362
Joined: Fri Jun 27, 2003 11:34 am
Location: Manchester, England.
Contact:

Post by fredlongworthhighschool »

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
Andy Davis
Web Designer & Smartboard Manager

Fred Longworth High School, Manchester, England.
Post Reply