I usually work in ASP and am not very proficient in java script so this may seem like a newbie question.

I have a page that has a URL parameter value i need to extract, it will look like this


the name will always be "img"

in asp i would do it like this

var_img = request.querystring("img")

I have found some scripts but they seem to run thru the entire url dividing things into pairs and values, is there a way to just extract the single value i am looking for?

thanks in advance