I don't think that there is anyway to do this with javascript without reloading.
However, you could contuct it with something like
"http://".$HTTP_SERVER_VAR["SERVER_NAME"].$PHP_SELF
or
"http://".$HTTP_SERVER_VAR["SERVER_NAME"].HTTP_SERVER_VARS["REQUEST_URI"]
or
"http://".$HTTP_SERVER_VAR["SERVER_NAME"].HTTP_SERVER_VARS["SCRIPT_NAME"]
(i have never actually done this, but all of the above look like they will prduce the desired results)
calling phpinfo() will produce a list of variables that you can use.
og