Adding Back button for web page loaded within another web page
<p>I have an <code>index.php</code> with two major sections: the <code>navbar</code> and the <code>main-content</code>. The <code>navbar</code> contains links which will load another webpage to the <code>main-content</code> through this <code>jQuery</code> code:</p>

<pre><code>jQuery('#main-content').load('sampleurl');
</code></pre>

<p>Some of these web pages contain links to another web page, so I want to add a back button. 
I tried using the <code>history.back()</code> and <code>history.go(-1)</code>, as well as the <code>$_SERVER['HTTP_REFERER']</code>, but they don't really work in my case.</p>

<p>How will I add the back button in this situation?</p>
