Here is the code snippet I am currently using to create a "Back" button:
<INPUT type="button" value="Button" onclick="window.history.back(); return true;">
The issue I am facing is that on the previous page, there are two div elements. Initially, div1 is displayed when the page loads. Upon clicking a button in div1, it transitions to div2. In div2, there is a "Next" button that redirects to another page. I am looking for a solution to implement a "Back" button that will display div2 when clicked. Using history.back() only shows div1.
Below is the relevant HTML code:
List all your liabilities as calculated on the day the debt was forgiven or prior
NEXT<div id="d2">
<table cellspacing="3">
<tr>
<td colspan="2" class="styleh">
<p>
<b>Part II. List the fair market value (FMV) of all your assets, calculated as of the
day prior to the debt being forgiven - this would be the "sell today, cash value."</b></p>
</td>
</tr>
<tr>
<td>
</td>
<td>
<button id="btncalc" onclick="return btncalc_onclick()">
Calculate</button>
<button id="Button2" runat="server">
BACK</button>
</td>
</tr>
</table>
</div>
I appreciate any assistance with this matter. Thank you in advance.