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.
This will all be onload. Can this also be done with a textbox? (Input type text - set text to query)
I cannot use php of asp. Just html and javascript!