title: Set javascript variable based on dynamic url
body: <p>Does anybody know a javascript code that will detect the dynamic url of the page (?q=Chicken) and setup a javascript variable called 'query'. I would then like to display the variable as text.</p>
  
  <p>This will all be onload.
  Can this also be done with a textbox? (Input type text - set text to query)</p>
  
  <p>I cannot use php of asp. Just html and javascript!</p>