brianchan.us
Get url parameters with javascript
There are times you will need to grab url parameters, then update some of your form components accordingly. In my case, it was a search form that passes search terms using GET. I largely got the ja…