/ My Projects / Web Development / JSURL

## Retrive Variables from URLs

This library for JavaScript will, upon being loaded, scan the URL for variables in the following format:
http://www.example.com/index.html?foo=bar&id=123
And will define them in the same section of the document as they were called (eg, call the script in the head, the variables load there. The Variables are each in their own respective script tags directly in the HTML code to allow for universal use.

#### To use, simply call the following file:

http://lib.glmills.gq/jsurl/gervars.js

#### Or to test the mechanic, visit:

http://lib.glmills.gq/jsurl/