Get url query while return false
<p>I've been searching for this on google en SO, i got the function that i wanted to get the query paramaters from the url (<a href="http://jquery-howto.blogspot.be/2009/09/get-url-parameters-values-with-jquery.html" rel="nofollow">link to article</a>).<br>
But i can't find an answer to my question, which i'm pretty positive about is that it should be prety easy to fix, i even feel foolish to ask, but i just can't find this specific answer.  </p>

<p>When i click a link and i catch that click in jquery, the function returns false (i don't want a refresh), so the parameters that i want are not parsed into the url. How do i get these?</p>

<pre><code>CURRENT URL: index.php?page=search&amp;action=searchAll
&lt;h4 class="videoLink"&gt;&lt;a href="index.php?page=search&amp;amp;action=playVideo&amp;amp;isAjax=true&amp;amp;v={$result.link}" class="{$result.link}"&gt;{$result.title}&lt;/a&gt;&lt;/h4&gt;
</code></pre>

<p>jQuery simplified </p>

<pre><code>$('.videoLink').click(playVideo);  

function playVideo(){
   url = getUrlVars();
   return false;
}

function getUrlVars(){
   var vars = [], hash;
   var hashes = window.location.href.slice(window.location.href.indexOf('?')+1).split('&amp;');

   for(var i = 0; i &lt; hashes.length; i++){
       hash = hashes[i].split('=');
       vars.push(hash[0]);
       vars[hash[0]] = hash[1];
   }
return vars;
}
</code></pre>

<p>So when i trace url, i only get the params: page &amp; action</p>
