jquery mobile, use android hardware back button to close a panel
问题 I created a panel using jqm, and I'd like to be able to use the andoird phones back button to close it when it's open. For now, when the panel is open and I use the back button, it goes to the previous page, instead of only closing the panel. Any idea how to do this ? Here's my html page with the panel : <div id="welcome-page" data-role="page"> <a data-role="button" id="open-panel" data-theme="a">Enquiries</a> </div> Here's the structure of my js file for the panel : $(document).on(