English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

eg.

Can I call function aa() & function bb() in the onclick event

2006-09-13 00:07:26 · 4 answers · asked by Nirmallya K 1 in Computers & Internet Programming & Design

4 answers

Absolutely, but you need to use a semicolon (;) instead of a comma (,):

What might be better would be to just make a new function, x:
function x() {
aa();
bb();
}
depending on how your code is laid out.

2006-09-13 00:09:45 · answer #1 · answered by std 3 · 0 0

Yes you can call more than one function. Just put a semicolon (";") after each function,

e.g.

2006-09-13 00:11:48 · answer #2 · answered by Kelly O 2 · 0 0

do basically a thoroughly distinctive attitude could be to apply addEventListener, which permits you to function any variety of applications for an experience. See the link decrease than. in spite of the fact that, this won't paintings in internet Explorer 8 or decrease than (<= IE8 has its very own way of including numerous events), and the above would be high quality.

2016-11-07 05:42:42 · answer #3 · answered by ? 4 · 0 0

Nirmallya K try this link it just might help you

http://www.google.co.uk/search?hl=en&q=call+more+than+one+function+in+a+event+in+javascript&btnG=Google+Search&meta=
http://uk.search.yahoo.com/search?p=call+more+than+one+function+in+a+event+in+javascript&fr=FP-tab-web-t340&ei=UTF-8&meta=vc%3D

2006-09-13 00:13:46 · answer #4 · answered by Joe_Young 6 · 0 0

fedest.com, questions and answers