【发布时间】:2014-12-11 01:14:22
【问题描述】:
在我的混合移动应用程序(为 android 和 ios 开发)中,我使用下面的代码 window.open("sample.html","_blank","location=yes") 在 inappbrowser 中启动 sample.html 页面。这样,它会打开一个 inappbrowser 窗口并加载带有 url 栏的 sample.html 页面,该页面在 android 中带有“X”标记,在 ios 底部有“Done”按钮。如果我们点击 android 中的“X”标记或 ios 中的“完成”按钮,它会关闭 inappbrowser。现在我希望在单击 sample.html 中的按钮时具有相同的行为。我使用了 window.close() 但它不起作用。
我正在为我的应用程序使用 IBM Worklight 框架。
【问题讨论】:
标签: javascript cordova ibm-mobilefirst