/ Published in: JavaScript

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.
www.example.com/index.html?param=some_value
it will return "some_value".
NOTE! This only works if you use Prototype JavaScript framework.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
document.URL.toQueryParams().param
Comments
