ios - How to getback from external link in webview in iPhone application -
i using phonegap show website in phone application. have used window.open , it's working fine when click on external link not have option come in iphone.
so there back? can know viewing external website can open phone browser or other solution.
you can show toolbar cordova inappbrowser plugin has back, forward , close buttons. further customize app browser, please refer inappbrowser plugin documentation. code open website in modal webview.
window.open("https://www.google.com", _blank', 'toolbar=yes')
this behavior can changed replacing _blank 1 of following attributes:
- _self: opens in cordova webview if url in white list, otherwise opens in inappbrowser.
- _blank: opens in inappbrowser.
- _system: opens in system's web browser.
Comments
Post a Comment