When using alert or confirm in Javascript, the browser is forced into a synchronous process where everything (even the loading of another page) halts until the user dismisses the dialog.
I was wondering if there was any other way to force the browser to halt/pause using JS or jQuery.
I looked at similar questions such as:
How to force javascript function execute synchronously/sequentially?
How to make jQuery ui dialog box halt browser processing like an alert or confirmation box?
Getting synchronous behavior in javascript?
...but none of the answers seem to address the issue head on. If there is not a way to do it, I will fully accept that as an answer.