1
我想隐藏只有InAppBrowser的url字段。但需要保持关闭按钮。Cordova InAppBrowser在应用程序内显示
使用以下代码,我可以在全屏幕上显示带有url字段和关闭按钮的html页面。
window.open(path, '_blank', 'location=yes');
或者
window.open(path, "_blank", 'toolbar=yes', "location=no", "closebuttoncaption=My Button Name");
,并使用下面的代码,我可以隐藏工具栏都没有。
window.open(path, '_blank', 'location=no,closebuttoncaption=Close Window');
我只想删除/隐藏Url字段,只显示关闭按钮和顶部标题上的文字。另外如果有一种方法可以将InAppBrowser放入一个div中,这也很好。
你可以打开一个iframe并指向你想要的URL。 – delueg
使用iframe,问题是后退按钮将不起作用。 – user3447572
也许这有助于 - > http://stackoverflow.com/questions/3254985/back-and-forward-buttons-in-an-iframe – delueg