Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q674 Is there any way to call multiple functions with a single event?

irt.org | Knowledge Base | JavaScript | Function | Q674 [ previous next ]

Q674 Is there any way to call multiple functions with a single event?

First the JavaScript functions:

<SCRIPT LANGUAGE="JavaScript"><!--
functionname1() {
    ....
}

functionname2() {
    ....
}

functionname() {
    functionname1();
    functionname2();
}
//--></SCRIPT>

Then either:

... onClick="functionname1();functionname2()"...

or:

... onClick="functionname()"...

Feedback on 'Q674 Is there any way to call multiple functions with a single event?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.