Back Button Code not working
<p>I am using the following code for a "Back" Button:</p>

<pre><code>&lt;INPUT type="button" value="Button" onclick="window.history.back(); return true;"&gt; 
</code></pre>

<p>But, on the Previous page I have two div elements. When the page loads it will show div1. The next time, when the button of div1 is clicked, div2 will show. On div2 I have a "Next" button. which redirects to the other page. I want code for a "Back" button, which will show div2 when Back is clicked. Also, If I use history.back() it will show div1. </p>

<p>HTML code</p>


        
            
                
                    <p>
                        <b>List all your liabilities as calculated on the day&nbsp; the debt was forgiven to
                            the debt was forgiven prior</b></p>
                
            
            
                
                
                
                    
                        NEXT
                
            
        
    

<pre><code>&lt;div id="d2"&gt;
    &lt;table cellspacing="3"&gt;
        &lt;tr&gt;
            &lt;td colspan="2" class="styleh"&gt;
                &lt;p&gt;
                    &lt;b&gt;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."&lt;/b&gt;&lt;/p&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;button id="btncalc" onclick="return btncalc_onclick()"&gt;
                    Calculate&lt;/button&gt;
                &lt;button id="Button2" runat="server"&gt;
                    BACK&lt;/button&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
    &lt;/table&gt;
&lt;/div&gt;
</code></pre>

<p>Thank you in advance</p>
