How to set up (or disable) the automatic back button in jQueryMobile

Is it possible to configure (or just disable) the automatic back button in jQueryMobile?

+5
source share
2 answers

I think you are looking for this:

http://jquerymobile.com/demos/1.0a3/#docs/toolbars/docs-headers.html

To disable it, simply include data-backbtn="false"in the div the title of your page.

+8
source

To disable:

<div data-role="header" data-backbtn="false">

or

<div data-role="header" data-nobackbtn="true">

Regarding the setting, you can create your own return button, like this one, which mimics the behavior of the original, but allows you to control it:

<a href="#" data-rel="back" data-icon="arrow-l" data-theme="c" data-role="button">Back</a>

jQuery mobile Beta 1.

+4

All Articles