Tag Archives: url parameters

(JavaScript) Get URL parameters using Javascript

Usage: Let’s say we have an url: http://primera.vremenno.net?foo=yes&bar=no var hash = getUrlVars(); alert(hash['foo']); // returns ‘yes’ alert(hash['bar']); // returns ‘no’

Posted in JavaScript | Also tagged , , , , , , , | Leave a comment