Todo lo referente a la url de una página lo puedes saber consultando el objeto location,
que tiene las siguientes propiedades:
location.hash Specifies an anchor name in the URL
location.host Specifies the host and domain name, or IP address, of a network host
location.hostname specifies the host:port portion of the URL
location.href Specifies the entire URL
location.pathname Specifies the url-path portion of the URL
location.port Specifies the communications port that the server uses for communications
location.protocol Specifies the beginning of the URL, including the colon
location.search Specifies a query
Este último, location.search es el que contiene un string con el formato
?variable1=valor1&variable2=valor2&...
que puede aprovecharse para pasar datos de una página html a otra. Un ejemplo lo tienes en esta dirección: http://html.programacion.net/taller/tw_pasovar1.php
Espero que te valga.
Un saludo. Alejandro.