在Android开放系统中的浏览器链接中的PhoneGap 3.3 [英] Opening Link in System Browser in PhoneGap 3.3 on Android
问题描述
我一直在寻找一个答案,但它似乎最有什么,我发现的是旧版本的PhoneGap的。
I've been searching for an answer but it seems most of what I've found is for older versions of PhoneGap.
下面是我链接code:
Here is my link code:
<a href="#" onclick="window.open('http://acq.com/account/', '_system', 'location=yes');">My Account</a>
这code也绝对没有什么。我点击链接并没有任何反应。
This code does absolutely nothing. I click the link and nothing happens.
是的,我有phonegap.js添加HTML页面上。
And yes, I have phonegap.js added on the HTML page.
任何人都知道什么,我需要做的就是这个工作。这是我想做到这一点的PhoneGap应用程序的唯一纽带。 :/
Anyone know what else I would need to do to get this to work. This is the ONLY link in the PhoneGap app that I want to do this. :/
推荐答案
奇怪,因为它的声音,你需要安装在您的项目中InAppBrowser插件能够推出连接在外部浏览器。
As strange as it sounds, you need to have the InAppBrowser plugin installed in your project to be able to launch links in an external browser.
请参阅 http://docs.phonegap.com/en/3.3 0.0 / cordova_inappbrowser_inappbrowser.md.html
这篇关于在Android开放系统中的浏览器链接中的PhoneGap 3.3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!