android - Why is javascript:history.go(-1); not working on mobile devices? -


first, background:

i have application presents search page (html form) user. once criteria have been filled out , search button clicked, results appear beneath criteria section. in list of results, can view detail of individual result clicking link takes new page. within detail page, have included results link so:

<a href="#" onclick="history.go(-1);return false">back results</a> 

this works great in ie8/9, safari, firefox , chrome on desktop. however, not work on android phone, android emulator or iphone 3g. should note when use link on desktop returned seems cached copy of search page results, , i'm placed @ same scroll position within results. on mobile devices, appears though page reloads server, search criteria disappear, , there no results.

if has ideas on start looking solution, appreciate it! can provide more detail necessary.

thank , regards, cn

use:

    <a href="javascript:history.go(-1)">back results</a> 

ie not in "onclick" in "href" - that's work


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -