diff --git a/framework/src/org/apache/cordova/CordovaWebView.java b/framework/src/org/apache/cordova/CordovaWebView.java index 4157a7a9..82ab5513 100755 --- a/framework/src/org/apache/cordova/CordovaWebView.java +++ b/framework/src/org/apache/cordova/CordovaWebView.java @@ -516,6 +516,14 @@ public void postMessage(String id, Object data) { } } + /** + * Gets whether this WebView has a back history item. + * + * @return true if can go back, false if we are already at top + */ + public boolean canGoBack() { + return this.getNavigationHistory().canGoBack(); + } /** * Go to previous page in history. (We manage our own history)