Possible Duplicate:
how to get GET and POST variables with JQuery?
Get query string values in JavaScript
lets say my site has url http://www.akbrowser.tk/ds/?q=http://www.chess.com&r=http://www.blackle.com
(the two parameters are URLs)
I now want to get two javascript variables on the site, with the values of the two urls. (so the first variable would be the chess.com, and the second would be blackle.com [of course it would have the http and all, but I can only post one hyperlink])
how would I do that?
I saw some other similar questions on this site, and the poster gave a long solution that I didn't understand (I think it had something to do with find a '=' and take everything after it) but in this case it would give "http:// www.chess.com&r=http://www.blackle.com [without the space]" as one of the variables.
I also saw another post with multiple parameters like mine, but the poster gave a long solution so since I didn't understand it, I couldn't really make it do what I wanted it to do.
so can someone help me?