if you want to open external links, there are two ways:
1. Use the ChildBrowser plugin to launch your links and you can even come
back to your app:
https://github.com/phonegap/phonegap-plugins/tree/master/iPhone/Child...
2. Or you could add a rel attribute to explain that you are linking out of the
page you are on as this clears the Ajax call in the DOM. Here's an example:
<a href="http://www.visualizetheweb.com" data-icon="back"
rel="external">Link to a Web Page</a>
i think we should avoid using <a target="_blank" ...> in all situation.
more info :[url]http://groups.google.com/group/phonegap/browse_frm/thread/7815d5e103fc18ac/a3ba58b1002af281?#a3ba58b1002af281[/url]
1. Use the ChildBrowser plugin to launch your links and you can even come
back to your app:
https://github.com/phonegap/phonegap-plugins/tree/master/iPhone/Child...
2. Or you could add a rel attribute to explain that you are linking out of the
page you are on as this clears the Ajax call in the DOM. Here's an example:
<a href="http://www.visualizetheweb.com" data-icon="back"
rel="external">Link to a Web Page</a>
i think we should avoid using <a target="_blank" ...> in all situation.
more info :[url]http://groups.google.com/group/phonegap/browse_frm/thread/7815d5e103fc18ac/a3ba58b1002af281?#a3ba58b1002af281[/url]
本文探讨了在手机应用中安全地打开外部链接的两种方法:使用ChildBrowser插件和添加rel属性。避免使用target=_blank的情况,并提供了详细示例。
1530

被折叠的 条评论
为什么被折叠?



