A jQuery based URL parser for developers that parses the current page URL or a link you provide and returns its components similar to the PHP’s parse_url function.

Demo
Download

source