Javascript: Get variables from querystring

Problem:

You need to grab some information from the querystring of a URL using only javascript.

Solution:

Use some code I found!
Read more