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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to