Florian: Frame-URL auslesen

Beitrag lesen

Hallo nochmal,
ich hab jetzt wirklich ganz genau alles kopiert und es tut sich wieder nix. Einfach keine Reaktion, keine Fehlermeldung, garnix...
Vielleicht liegt es an irgendwelchen Sicherheiteinstellungen oder was weiß ich... Werd es morgen nochmal auf nem anderen PC probieren.

Dein anderes Posting hab ich auch gesehen. Die Lösung schaut auch interessant aus. Auch das werde ich mir morgen nochmal zu Gemüte führen

Vielen Dank für die Hilfe!

Schönen Abend noch
  Florian

Hellihello

<frameset rows="50%,50%">
<frame name="topFrame" src="top.html">
<frame name="bottom" src="bottom.html">
</frameset>

top.html:

<a name="top">
<p>topcontent</p>
... ganz viel inhalt
<p>content</p>
... ganz viel inhalt
<p>bottomcontent</p>

<a name="bottom">

bottom.html:

<script type="text/javascript">
//<![CDATA[

function changeURL(newHref) {
parent.topFrame.location.href=newHref;
}
function goAnchor(anchorName) {
parent.topFrame.location.href="top.html#" + anchorName;
alert(parent.topFrame.location.href);
}

//]]>
</script>

<button onclick="changeURL('http://de.selfhtml.org')">changeURL('http://de.selfhtml.org')</button>
<button onclick="goAnchor('top')">goAnchor('top')</button>
<button onclick="goAnchor('bottom')">goAnchor('bottom')</button>


>   
> funzt.  
>   
> Dank und Gruß,  
>   
> frankx