Jürgen Berkemeier: Frameset nachladen - Probleme mit Ankern

Beitrag lesen

Hallo Niels,

1.)
<script type="text/javascript">
<!--
function frameda() {
var dokument=location.search;
if(dokument)
frames.unten.location.href=dokument.substring(1,dokument.length);

var dokument=location.search;
if(dokument)
frames.unten.location.href=dokument.substring(1,dokument.length);

var dokument=location.search;
if(dokument)
frames.unten.location.href=dokument.substring(1,dokument.length);
}
//-->
</script>

Warum das Ganze drei mal?
Anker werden mit location.hash erfasst. Also
frames.unten.location.href=dokument.substring(1,dokument.length)+location.hash;

2.)
<script type="text/javascript">
<!--
function ladeframenach()
{
if(!parent.oben)
location.href="index.html?" + location.pathname;

+ location.hash;

}
//-->
</script>

Gruß,     Jürgen

--
<img src="http://www.uni-muenster.de/Physik/AP/Purwins/leute/Berkemeier/Plasmakugel.gif" border="0" alt="">