How can I get query string values from URL in Javascript?

This is helpful – simple javascript code to get query string values from a URL:

via Get Query String variables in JavaScript