I have a scenario like below:
I navigate to the reader page with the below form data
<form id="mainForm" action="Reader.aspx" method="post">
<input type="hidden" id="bookId" name="bookId" />
<input type="hidden" id="startPageId" name="startPageId" />
</form>
Initially the hidden variable values will be bookId=1 and startPageId=5
I navigate between the pages by using javascript and assume the startPageId will now change to 8
I want the new value to be stored in the above form data and want to submit the same page with different form data bookId=4 startPageId=10
When I click on the browser back button, I want the user to be navigated back to the BookId=1 and startPageId=8
Can anyone help me how I can achieve this?