How to close InAppBrowser itself in Phonegap Application?

后端 未结 3 1554
予麋鹿
予麋鹿 2021-01-17 16:14

I am developing Phonegap application and currently i am using InAppBrowser to display external pages. On some of the external pages I place a close

3条回答
  •  独厮守ぢ
    2021-01-17 16:38

    There is a SO post here that describes how to do this.

    You basically have to get a reference to the inapp browser by calling window.open and hook into the loadstop event. In the loadstop event check to see if the url contains a predefined path (like mobile/close - but could be anything) and then call call close.

    Here is the post

    https://stackoverflow.com/a/15981972/54805

提交回复
热议问题