Return to Snippet

Revision: 54674
at January 6, 2012 21:03 by srka


Initial Code
document.URL.toQueryParams().param

Initial URL

                                

Initial Description
This will return the value of "param" form the URI. For example if you have 

www.example.com/index.html?param=some_value

it will return "some_value".

NOTE! This only works if you use Prototype JavaScript framework.

Initial Title
Parse URI parameters with Prototype JS

Initial Tags
url, js

Initial Language
JavaScript