/    Sign up×
Community /Pin to ProfileBookmark

One Link Two Functions

Hi;
I have the below code in my html page.

[CODE]<a href=”#” onclick=”mywinname01betaborder=openIT(‘index.swf’,801,400,null,null,’mywin005′,10,true,true,false);”>[/CODE]

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

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@pyroAug 21.2003 — 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...
Copy linkTweet thisAlerts:
@golgeyeleauthorAug 21.2003 — Thanks a lot. I am nearly at thr bottom at java:mad:
Copy linkTweet thisAlerts:
@pyroAug 21.2003 — Happy to help... ?
×

Success!

Help @golgeyele spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.7,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...