title: Is there a way to force synchronous behavior in JavaScript like the alert() function does?
body: <p>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.</p>
  
  <p>I was wondering if there was any other way to force the browser to halt/pause using JS or jQuery.</p>
  
  <p>I looked at similar questions such as:</p>
  
  <p><a href="https://stackoverflow.com/questions/13543553/how-to-force-javascript-function-execute-synchronously-sequentially">How to force javascript function execute synchronously/sequentially?</a></p>
  
  <p><a href="https://stackoverflow.com/questions/7804462/how-to-make-jquery-ui-dialog-box-halt-browser-processing-like-an-alert-or-confir">How to make jQuery ui dialog box halt browser processing like an alert or confirmation box?</a></p>
  
  <p><a href="https://stackoverflow.com/questions/8565638/getting-synchronous-behavior-in-javascript">Getting synchronous behavior in javascript?</a></p>
  
  <p>...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.</p>