我在我的cordova 3.4.0 iOS项目中使用inappbrowser插件。我正在尝试显示工具栏,以便用户可以回到应用程序。但没有显示工具栏。inappbrowser在iOS上无法正常工作
我的代码是
window.open("http://www.youtube.com/embed/OFFXHbjVZ7A?html5=1",'_blank','location=no,closebuttoncaption=Done,toolbar=yes,toolbarposition=top');
我试着用,但没有运气
var ref = window.open('http://www.youtube.com/embed/OFFXHbjVZ7A?html5=1', '_blank', 'location=yes');
ref.addEventListener('loadstart', function() { alert(event.url); });
日志
2014-03-31 16:04:35.549 Survey[3202:60b] Multi-tasking -> Device: YES, App: YES
2014-03-31 16:04:35.617 Survey[3202:60b] Unlimited access to network resources
2014-03-31 16:04:37.562 Survey[3202:60b] Resetting plugins due to page load.
2014-03-31 16:04:38.557 Survey[3202:60b] Finished load of: file:///var/mobile/Applications/CBFA4CF5-ABFD-41BD-8832-064022B1699D/Survey.app/www/index.html
2014-03-31 16:04:41.698 Survey[3202:60b] Resetting plugins due to page load.
2014-03-31 16:04:53.948 Survey[3202:60b] Finished load of: http://www.youtube.com/embed/OFFXHbjVZ7A?html5=1
It is showing video but no back button
基本上我需要返回到应用程序。
任何建议,非常感谢。
在此先感谢
我越来越即使我使用target =“_系统”相同的结果! – chrysanhy