开发者

PhoneGap Direct user to safari

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";
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜