admin管理员组文章数量:1290157
Is it possible to open a javascript popup window on a android webviewer coded like this example from google? and if yes how? I dont want that the original page in the background is closed it has to be a popup like on the picture.
Building Web Apps link
Is it possible to open a javascript popup window on a android webviewer coded like this example from google? and if yes how? I dont want that the original page in the background is closed it has to be a popup like on the picture.
Building Web Apps link
Share Improve this question edited Jan 25, 2014 at 18:42 Aravin 4,1081 gold badge24 silver badges39 bronze badges asked Jan 25, 2014 at 18:32 user3235860user3235860 411 gold badge1 silver badge3 bronze badges2 Answers
Reset to default 4See answers to this question:
JavaScript alert not working in Android WebView
The answer from Stephen Quan is to just set the default webChromeClient
mWebView.setWebChromeClient(new WebChromeClient());
You can allow javascript and opening windows from javascript in a webview. Just set this settings
webView.getSettings().setJavaScriptEnabled(true);
webView.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);
Be careful though because enabling javascript on your app webview can bring some serious security issues
check this links
From StackOverflow
Interesting Presentacion
and this one for webviews
Official Android WebView Link
本文标签: how to display javascript popup in android webviewStack Overflow
版权声明:本文标题:how to display javascript popup in android webview - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741493128a2381712.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论