Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

get URL Parameters from current URL using Prototype JavaScript

I'm noob to JavaScript and want to use Prototype JS Framework to get some URL parameters. Imagine I have the following URL on my current browser:

http://www.somewhere.com?param=abc

how can I get the value of 'param' using any function or utility of Prototype JS ?

like image 340
Sal Prima Avatar asked Jun 12 '26 09:06

Sal Prima


1 Answers

Prototype.js DOES provide a utility:

uri.toQueryParams();
like image 171
Scott Avatar answered Jun 14 '26 23:06

Scott



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!