Straight To the point:
I have a code to get the referrer of a website, that website has a bit in the url which i need to capture like (http://example.com/?bg=colour). so is there something that i can extract only the "colour" bit.
Note. Colour is a variable, it could be blue, black, green etc.
i can do it in flash (not really me, a while ago someone on another forum gave this):
var queryS:String = urlS.substring(urlS.indexOf("?")+1);
var queryA:Array = queryS.split("=");
_
thanks in advance