Calling two jsMessage boxes from onClick event

Complete newbie here, but really like the jsMessage functionality. I have the following code:


Then I have a link that calls the two functions above:

<a href="#" onclick="one(); two();" >click</a>

I know there’s a reason, but can someone tell me why the second function pops up before the first one? If I use a plain old JavaScript alert, then the first function pops up first. Thanks.

Actually the both appears in correct order. jsMessage alerts differs from native ones, as they are not blocking js execution, so you have two calls to alerts in above case, it shows alert one, and without waiting shows alert two.

alerts and confirms from jsMessage have callback option, which can be used to trigger some other code after clicking on a button.