I am overriding my device back button per the documentation that I attach event listener to backbutton with argument of false after the devicerea
backbutton
false
devicerea
Try This
$(document).ready(function () { document.addEventListener("backbutton", onBackKeyDown, false); }); function onBackKeyDown() { alert('ok backey downed'); }
Make sure these files are link in your page