December 2013
Intermediate to advanced
384 pages
9h 54m
English
<a data-rel="back data-role="button" class="ui-btn-right">Next</a></div>
Another useful feature included in jQuery Mobile is the ability to define a navigation button as a back button. A back button uses the browser history to navigate to the previous button mobile page. To define a link as a back button, you need to add the data-rel="back" attribute. For example:
<a data-rel="back data-role="button" class="ui-btn-right">Next</a></div>
Notice that there is not an href attribute. That is because the href attribute will be ignored; instead, the most recent URL will be popped off the browser’s navigation history list.
Read now
Unlock full access