Mobile-friendly Back-button

In mobile interfaces, you sometimes need a user-friendly back-button within the interface itself (without relying on the mobile browser chrome).


To attach a back-button or link, simply attach the data-back attribute to a link. The link's href attribute may be just a non-functional #, or it could degrade gracefully to a normal link if you can set the href destination at the application level.

Note

The advantage to using the back-button component is that when clicked, it will keep the behavior of the browser's back- and forward-buttons functioning as expected, whereas a normal link to the previous page would add the current page to the browser's back-button and disable the forward-button.