NativeMessageBox supports browser-hosted dialogs through a custom JavaScript overlay host and an optional native WASM module.
native-message-box.js is copied into the published output.dotnet build samples/CrossPlatformSample/NativeMessageBox.CrossPlatformSample.Browser
./build/scripts/package-wasm.sh
dotnet publish samples/CrossPlatformSample/NativeMessageBox.CrossPlatformSample.Browser -c Release
native-message-box.js remains in wwwroot.Use it when you want consistent button labels, optional input, and richer content than alert, confirm, or prompt can provide.