history.go(-1) supposed to go back which does in all of the browsers but it doesn't show the data changed with js in most browsers. here's a sample code which works in ff but not ie or chrome:
some page to go back to:
next.html just to redirect back:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
div = document.createElement('div');
div.innerHTML = '<input id="something" type="text" name="something" />';
<a href="next.html">Goto next page</a>
Now when going back to the page with FF (also opera and safari), it shows both the inserted input AND the value we put in it. but with chrome and IE they do not show neither the inserted div and the value. In other words they won't show the changes js made to the page.
I was wondering if it is possible to make them remember the changes that js made?