How to display javascript popup in android web browser

Is it possible to open a javascript popup on an Android web browser encoded this way from Google? And if so, how? I do not want the original page in the background to be closed, it should be a pop-up window, as in the picture.

Link creation for web applications

enter image description here

+4
source share
2 answers

See the answers to this question:

JavaScript warning does not work in Android WebView

The answer from Stephen Quan is to simply set the default webChromeClient

mWebView.setWebChromeClient(new WebChromeClient());
+3
source

javascript javascript webview.

webView.getSettings().setJavaScriptEnabled(true);
webView.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);

, javascript - .

fooobar.com/questions/41807/...

-

Android WebView

+1

Source: https://habr.com/ru/post/1523716/


All Articles