title: Android device back button is not working in worklight
body: <p>I am adding functionality to device back button using phonegap </p>
  
  <pre class="lang-js prettyprint-override"><code>document.addEventListener("deviceready", onDeviceReady, false);
   WL.Logger.debug("Login init");
  
  function onDeviceReady() {
      document.addEventListener("backbutton", onBackKeyDown, false);
   }
  
  function onBackKeyDown() {
      alert("sample1 back button clicked");
      $('#page').load("pages/samplepage1.html", function(){
          currentPage.init();
  
      });
  }
  </code></pre>
  
  <p>When i click on back button sample1.html page it shows alert("sample1 back button clicked")
  its wrking fine</p>
  
  <pre class="lang-js prettyprint-override"><code>document.addEventListener("deviceready", onDeviceReady, false);
  
        function onDeviceReady() {
  
       document.addEventListener("backbutton", onBackKeyDown, false);
   }
  
  function onBackKeyDown() {
  
      alert("sample2 back button clicked");   
      $('#page').load("pages/sample2.html", function(){
          currentPage.init();
  
      });
  };
  </code></pre>
  
  <p>When i click on backbutton on sample2.html page it was showing 
  alert("sample1 back button clicked") but not showing the alert("sample2 back button clicked") . I wrote this it  in outside the currentPage.init= function() {} in js file wt is the problem ? wt i did mistake </p>
  
  <p>pls post  me  if any of u know the solution 
  thank's in advance </p>