You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "irfan baig (JIRA)" <ji...@apache.org> on 2015/09/16 13:44:45 UTC
[jira] [Created] (CB-9672) Device Back Button Works only once in
all html pages When i install app
irfan baig created CB-9672:
------------------------------
Summary: Device Back Button Works only once in all html pages When i install app
Key: CB-9672
URL: https://issues.apache.org/jira/browse/CB-9672
Project: Apache Cordova
Issue Type: Bug
Components: Android, CordovaLib
Affects Versions: 4.1.1
Environment: windows 8.1 Android adt eclipse
Reporter: irfan baig
Device Back Button Works only once in all html pages When i install app.
Code:
function onLoad() {
document.addEventListener("deviceready", onDeviceReady, false);
}
// device APIs are available
//
function onDeviceReady() {
// Now safe to use the Cordova API
/* Registering the basic events associated with device hardware */
document.addEventListener("backbutton", function() {
$("#back").click();
}, false);
}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org