title: javascript query string
body: <p>I am learning how to do a query string what html would you use for the following function on the sending and receiving page to see the result of author?</p>
  
  <pre><code>function getQuerystring(key, default_)
  {
    if (default_==null) default_="";
    key = key.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
    var regex = new RegExp("[\\?&amp;]"+key+"=([^&amp;#]*)");
    var qs = regex.exec(window.location.href);
    if(qs == null)
      return default_;
    else
      return qs[1];
  }
  </code></pre>
  
  <p>I found it at: <a href="http://www.bloggingdeveloper.com/post/JavaScript-QueryString-ParseGet-QueryString-with-Client-Side-JavaScript.aspx" rel="nofollow">http://www.bloggingdeveloper.com/post/JavaScript-QueryString-ParseGet-QueryString-with-Client-Side-JavaScript.aspx</a></p>
  
  <p>Are they any good query string examples?</p>