I am developing a iphone app using phoneGap. How can I direct user to safari when he clicks on a link or button inside of the application.
example: 开发者_C百科When user taps a button, safari browser will come to front and load corresponding site.
you can use the childbrowser plugin to do that. Take a look here: https://github.com/purplecabbage/phonegap-plugins/tree/master/iPhone/ChildBrowser
This line just worked for me..
location.href="http://www.google.com";
精彩评论