JavaScript-URL-Parser This is a simple JavaScript URL parser - it extracts the host and the query (key-value pairs). The host parser is here (see it in action here): url-parse-host.js The query parser is here (see it in action here): url-parse-query.js