Click to See Complete Forum and Search --> : One Link Two Functions


golgeyele
08-21-2003, 07:38 AM
Hi;
I have the below code in my html page.
<a href="#" onclick="mywinname01betaborder=openIT('index.swf',801,400,null,null,'mywin005',10,true,true,false);">

And I want to add one more function to this link. Same link will have two functions. How can I do it?

pyro
08-21-2003, 07:42 AM
Add it after the semicolon.

<a href="#" onclick="functionOne(); functionTwo(); return false;">run two functions</a>

The return false at the end keeps the browser from running the link...

golgeyele
08-21-2003, 08:16 AM
Thanks a lot. I am nearly at thr bottom at java:mad:

pyro
08-21-2003, 09:37 AM
Happy to help... :)