title: jquery mobile backbutton to quit App for specific Page
body: <p>I had a look around and can't seem bind the backbutton to a specific page for Android phone in Phonegap/JQM. </p>
  
  <p>I am trying to only allow the backbutton to trigger <code>navigation.notification.confirm</code> to prompt the logout at 1 specific page. But it either doesnt prompt it or prompt it every single page. </p>
  
  <p>This below doesn't trigger</p>
  
  <pre><code>$(document).on( 'pageinit','homepage',function onLoad(){
                  document.addEventListener('deviceready', deviceReady, false);
              }
          function deviceReady() {
              document.addEventListener('backbutton', backButtonCallback, false);
          }
  
          function backButtonCallback() {
              navigator.notification.confirm('Do you want to exit the app? If not, use the top left button to go to Previous Page',confirmCallback);
              }
          function confirmCallback(buttonIndex) {
              if(buttonIndex == 1) {
              navigator.app.exitApp();
              return true;
              }
          else {
              return false;
              }
          })
  </code></pre>
  
  <p>This doesn't trigger either</p>
  
  <pre><code>function onLoad(){
                  document.addEventListener('deviceready', deviceReady, false);
              }
          function deviceReady() {
              document.addEventListener('backbutton','#homepage' backButtonCallback, false);
          }
  
          function backButtonCallback() {
              navigator.notification.confirm('Do you want to exit the app? If not, use the top left button to go to Previous Page',confirmCallback);
              }
          function confirmCallback(buttonIndex) {
              if(buttonIndex == 1) {
              navigator.app.exitApp();
              return true;
              }
          else {
              return false;
              }
          }
  </code></pre>