nativescript-webview-interface icon indicating copy to clipboard operation
nativescript-webview-interface copied to clipboard

Javascript Alert and confirm is not showing

Open kennedymca opened this issue 7 years ago • 1 comments
trafficstars

Hi,

in my webview i am using alert and confirm, it's not showing, how to solve this?

kennedymca avatar Mar 19 '18 07:03 kennedymca

@kennedymca You cannot have alert/confirm showing in a WebView. However, you can use the webview interface to send an event alert/confirm to native code, then create & show native alert dialog, then send back the result via webview interface if needed. Also, this is not the issue with webview interface. It's the default functionality of webview. If you want to search for other solution, try stack overflow.

tdhman avatar Mar 26 '19 08:03 tdhman