Is there a way in Javascript to get the arguments passed to the url from the address bar?

If I have a page test.htm and I open it like test.htm?id=99&name=user

is there a way to get the id and name arguments?