badassery.blogspot.com
Flagrant Badassery: parseUri(): Split URLs in JavaScript
http://badassery.blogspot.com/2007/02/parseuri-split-urls-in-javascript.html
I ♥ ninjas. Wednesday, February 07, 2007. ParseUri(): Split URLs in JavaScript. Please see the latest version of this function on my new blog:. ParseUri: Split URLs in JavaScript. For fun, I spent the 10 minutes needed to convert my. Into a JavaScript function. For those who haven't already seen it, I'll repeat my explanation from the other post…. Splits any well-formed URI into its parts ( all are optional. Function parseUri(sourceUri){ var uriPartNames = ["source","protocol","authority","domain","port"...