我在我的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