0

I've done my share of research but failed to find any reliable option. I've a AJAX-based mobile web app, developed in Spring MVC and want to support both the browser's back button as well as a button of the same function in the layout itself.

Can anyone show me some alternatives? FYI, I'm using jquery, so plugins for that are welcomed in diminuishing dependencies.

Thanks

Nuno Neto
  • 303
  • 2
  • 4
  • 15
  • You could use the history api to add history entries to the page so that the back button could be used to trigger an event that your app then responds to. – Kevin B Nov 13 '13 at 22:31
  • Can you provide an example of that please? – Nuno Neto Nov 14 '13 at 15:52
  • No, however i can provide a guide that was the result of a quick search: https://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/Manipulating_the_browser_history (note, any time you are searching for documentation for web/javascript methods, add "mdn" to the search text. For example, "history api mdn") – Kevin B Nov 14 '13 at 15:54

0 Answers0