I want to give a pop up whenever the back button is clicked. Using my code now back button is disable but it is not giving alert message.It is still not working. My work..
function load()
{
document.addEventListener("backbutton", backKeyDown, false);
function backKeyDown() {console.log("PhoneGap Ready!");}
}
<body onLoad="load()">
</body>
See Question&Answers more detail:os