If I have an event that runs multiple javascripts does the following script wait until the previous script is complete before it runs?
Example:
<a href="#" onclick="javascript:SCRIPT_1();SCRIPT_2();SCRIPT_3();">Test Me</a>
Will SCRIPT_2 not execute until SCRIPT_1 is complete doing its stuff?
Thanks.
AFAIK, yes, javascript execution is synchronous. So,
SCRIPT_2will not execute untillSCRIPT_1is done.edit Yep, the accepted answer on when-is-javascript-synchronous is worth a read