Hi,
I will use below code for exit app but event not working.
Please help me
I will use below code for exit app but event not working.
<script type="text/javascript">
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady(){
alert();
document.addEventListener("backbutton", function(e){
if($.mobile.activePage.is('#deviceready')){
e.preventDefault();
navigator.app.exitApp();
}
else {
navigator.app.backHistory()
}
}, false);
}
</script>
Please help me

