Is it possible to determine whether the current browser tab has history?
<p>I have a button on a view, which on submit directs the user's browser back to the previous page using <code>window.history.go(-1);</code>. This is necessary for us to maintain session data to display the previous view correctly.</p>

<p>My question is, is it possible for us to determine whether there is any browser history using jQuery so that if there is none we can instead redirect the user with </p>

<pre><code>window.location = "/Transaction/Index";
</code></pre>

<p>to the correct page?</p>

<p>Thanks in advance!</p>
