JavaScript alert() does not block when using UIAlertController

Using the recipe "Handle JavaScript Alerts" (found on this website), I am unable to get the alert() function to block, it is acting asynchronously (continues on to next statement).

This can be demonstrated by adding another alert("hello world 2"); to the basicAlert() function in Alerts.html Only the first alert will show.

My question is this: How does one show two consecutive alert() popups?

Thank you

Sign In or Register to comment.