accessing browser history via javascript to implement custom back and forward buttons
<p>I have custom back and forward buttons on my page.</p>

<p>The back button should be enabled only if the history.back page is from my website.</p>

<p>Similary the forward button should be enabled only if the history.forward page belongs to my website.</p>

<p>document.referrer returns the name of the previous page.</p>

<p>How do I get the name of the forward page?</p>
