Y
Hacker News
new
|
ask
|
show
|
jobs
by
curio
5845 days ago
you can also do this with a regular expression. here's the blog post i wrote on it a year ago. i use one function to grab get variables from either window.location or from a script tag. 5 lines of code.
http://www.onlineaspect.com/2009/06/10/reading-get-variables...