JavaScript query string

Posted by Chris on Stack Overflow See other posts from Stack Overflow or by Chris
Published on 2009-03-15T03:50:41Z Indexed on 2010/06/12 2:52 UTC
Read the original article Hit count: 441

Filed under:
|

Is there any JavaScript library that makes a dictionary out of the query string, ASP.NET style?

Something that would be used like:

var query = window.location.querystring["query"]?

Is a "query string" called something else outside the .NET realm? Why isn't location.search broken into a key/value collection already?

EDIT: I have written my own function, thanks, but does any major JavaScript library do this?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about querystring