extracting value from url using jquery
<p>I'm intercepting user clicks on pagination links and I need to extract only page number from that link which is always set inside page variable. </p>

<p>so inside my js I have 
....</p>

<pre><code>var a = $a.attr("href");
</code></pre>

<p>..
which ouputs this</p>

<pre><code>/Home/GetTabData?page=2&amp;activeTab=House
</code></pre>

<p>so how can I extract only this number from after <strong>page=</strong></p>

<p>If it's matter keep in mind that this number can be two or three digit long and activeTab is dynamic value.</p>

<p>Thanks</p>
