Call Multiple JavaScript Functions In Onclick Event

For More Videos Visit Our YouTube Channel




Here we consider how to Call Multiple JavaScript Functions In Onclick Event. Lets start with one example here. Suppose we have a link as shown below.

<a href="#" > Click Here </a>



In JavaScript, we have two functions as shown below.

function firstFunction() {
     // Function Code Here...
}

function secondFunction() {
     // Function Code Here...
}



Now for calling these two functions in OnClick event of link, follow these code.

<a onClick="firstFunction(); secondFunction();" href="#" > Click Here </a>



That's all, by this way we can Call Multiple JavaScript Functions In Onclick Event.