Skip to content

Instantly share code, notes, and snippets.

View PRINCEHR's full-sized avatar

Prince PRINCEHR

  • Cadence Design System
  • India
View GitHub Profile
@PRINCEHR
PRINCEHR / app.js
Created April 30, 2017 06:20 — forked from fer-ri/app.js
Cordova Exit App Confirm
document.addEventListener("deviceready", deviceisready, false);
function deviceisready(){
alert("Device Ready is called");
document.addEventListener("backbutton", function(e){
if ( $('.ui-page-active').attr('id') == 'mainpage') {
//window.location = "#exitDialog";
exitAppPopup();
}else{
history.back();