Currently, I\'m working to replace \"alert\'/\"confirm\" with the jquery dialog.
But most of legacy codes is written in some asynchronous way, which make it
You can use a real modal dialog.
[dialog] is an element for a popup box in a web page, including a modal option which will make the rest of the page inert during use. This could be useful to block a user's interaction until they give you a response, or to confirm an action.
https://github.com/GoogleChrome/dialog-polyfill