Here is my what I have
<div id=A></div>
<div id=B></div>
<input type="button" value="ChangeA" onClick="createTableA();">
<input type="button" value="ChangeB" onClick="createTableB();">
So in my jsp file, I use javascript and jQuery to manipulate the content of those two div
dynamically. For example, if I click on changeA
, the function createTableA()
will dynamically manipulate <div id=A></div>
and append
a table to it. So my question is if I click on changeA
, then click changeB
, how can I manipulate the history so that if I click the back
button, I go back to the content of Table A