Possible Duplicate:
How can I get query string values?
how can I get the HTTP GET request using javascript?
for example if I have access www.sample.com/div/a/dev.php?name=sample
how can I get the GET request of name=sample
and the value if name
which is sample
?