简体   繁体   中英

Open Browser within an iphone app [using Phone-gap]

I am creating an iphone app using phonegap. However, there is a requirement wherein if the user clicks an external link, it should load the content within the app. Basically it should open a browser window with only a close button, so that you can go back to what you were doing within the app. Any Idea if jquery mobile has any plugin to do so ?

Thanks in advance !

PhoneGap has the InAppBrowser plugin.

You'll just have to attach a handler on your external links that calls preventDefault() , to prevent navigating away from your app, and calls window.open on the target URL.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM