/    Sign up×
Community /Pin to ProfileBookmark

Need more than 1 thing to happen on ‘onclick’

In the code below I changed onclick=”DisplayRadio();” to onclick=”CngOption(‘general’);”

[code]
<input id=”Altavista” onclick=”DisplayRadio();” type=”radio” value=”Altavista” name=”engine”><a class=”linklook” href=”http://www.altavista.com” target=”_blank”><font face=”arial” size=”2″><b>Alta Vista</b></font></a><br>
[/code]

How do I get both to execute at the same time?

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@PadonakApr 25.2007 — onclick="DisplayRadio();CngOption('general');"

or just use another event for executing the second function such as [b]onmouseup[/b] or [b]onblur[/b]

p.s. do not use deprecated tags like <font> or your page will not pass w3c markup validation
×

Success!

Help @Scrabble 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.25,
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,
)...