Skip to content Skip to sidebar Skip to footer

Phone Gap Back Button Alert Message

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

Solution 1:

I am not sure but why don't you just add a class to the button and then tell it what to do.

<a href="#home" class="backButton">Back</a>

$('.backButton').click(function() { alert("This should work!"); });

Post a Comment for "Phone Gap Back Button Alert Message"