Parse URI parameters with Prototype JS


/ Published in: JavaScript
Save to your folder(s)

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.


Copy this code and paste it in your HTML
  1. document.URL.toQueryParams().param

Report this snippet


Comments


You need to login to view comments.