I am new to phonegap. I have prepared one sample application. My application has 2 pages, the first page has one button, when clicked the second page will open. It is workin
navigator.app.exitApp();
add this line where you want you exit the application.