Dialogue Box from broswer not showing

I am using custom web viewer. There are certain actions that when a user takes, there should be an alert box with a notification to which the user must press ‘Ok’ to proceed.
This dialogue box shows up when I visit the website using a regular browser but doesn’t show up in the App.
Any help?

Because you aren’t handling the corresponding events correctly.
Here is how you can do that: