I’m trying to make a back button in a toolbar in jquery mobile for an iOS ap. The problem is that you can get to the same page through different ways so I can’t just statically program where the back button should go. Is there a way to figure out how I was referred to each page?
Share
If you use the attribute data-rel=”back” on an anchor, any clicks on that anchor will mimic the back button, going back one history entry and ignoring the anchor’s default href.
Also, please keep in mind that if you just want a reverse transition without actually going back in history, you should use the data-direction=”reverse” attribute instead.