crazysvn what are you trying to do? Are you writing an extension?
Flarum doesn't have a ready to use, thread-blocking equivalent to javascript confirm()
. But in your extension you can easily create your own custom modal to use as a confirmation modal, then proceed from a callback or write the code to be asynchronous.
Or are you referring to an existing Flarum feature that uses the browser controls instead of something prettier?