onAlert

fun WebEngine.onAlert(context: CoroutineContext = Dispatchers.JavaFx, action: suspend CoroutineScope.(WebEvent<String>) -> Unit)

See also

WebEngine.setOnAlert