Parsing URLs with JavaScript

Introduction

When one needs to parse a Uniform Resource Locator (URL) on the front-end with JavaScript, there are really two choices.

  1. Do it using a regExp.
  2. Use a HTML element.

Below is a list of sites dedicated to this topic

Libraries

Gists

jsperf suites

StackOverflow questions

JS Bin examples

Blog entries

RFC specifications

Online live examples