No se si algo así servirá:
En el documento Padre que tiene el enlace utilizas este código:
Código:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin título</title>
<script language="javascript">
function abrir() {
window.open('2.html','ventana')
}
</script>
</head>
<body>
<a href="javascript:abrir()" target="_self">abrir ventana hija</a>
</body>
</html>
y en la ventana hija que se abre este otro
Código:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin título</title>
<script language="javascript">
urlPadre = self.opener.location.href
extraer = urlPadre.substring(urlPadre.length-5,urlPadre.length-6)
document.write(urlPadre+'<br>')
document.write(extraer)
</script>
</head>
<body>
</body>
</html>
Hay que hacerle un par de modificaciones de acuerdo a lo que necesites vos.
Saludos