jQuery/Javascript will chaining be the solution?
<p>dummy.html:</p>

<pre><code>&lt;button id="do"&gt;Do&lt;/button&gt;
</code></pre>

<p>external.js:</p>

<pre><code>$("#do").click(function() {
  history.go(-1);
  alert('One page back');
  history.go(1);
  alert('back from were you started');
});
</code></pre>

<p>Will execute history.go(-1); and end.</p>

<p>In the final usage scenario it will be used with jQuery UI tabs consisting
of several tabs, and normally history.go(-1) will stay on same page but
normally return to another tab, on the same page.</p>

<p>Can I solve this with chaining and how would it look like?</p>
