That's the problem with eternity; there's no telling when it will end.” Tom Stoppard
A resource for web developers a code snippet library with step by step tutorials.

a resource for web developers...

       

Search Amazon

JavaScript: Extras code library snippet 9.

 

Up Up to JavaScript: Extras overview page

 

 

Capturing the 'get' method attribute query string with 'location.search'.

The 'get' query string is the value or the name and value pair(s) after the question mark (?) in a URI. Also known as the get parameters. Example: http://www.justfigures.co.uk/snippet.php?query_string or: http://www.justfigures.co.uk/snippet.php?value=query_string

Unescaping the query string and removing the name '?value=' to leave the parameter value only.

 



 

 

You can open the above example in a new window to view the name and value pair passed in the URI in the browser address bar.


View above example in a new window


Back to top

 

Bookmark and Share

 

Copyright © 2006-2010 justfigures.co.uk