Hellihello Florian,
eher so:
Hallo nochmal,
ich kriegs leider immer noch nicht hin...
So schaut der Quelltext z.Z. aus:
<html>
<head>
<script type="text/javascript">
function setAnchor() {
//test:
alert("vorher:"+parent.mainFrame.location.href);
anker='#top';
old_href=parent.mainFrame.location.href;
parent.mainFrame.location.href = old_href + anker;
//test:
alert("nachher:"+parent.mainFrame.location.href);
}
</script>
</head>
<body>
<a href="#" onClick="parent.mainFrame.location.href;">top</a>
</body
</html>Wenn ich als Eventhandler onClick="alert(parent.mainFrame.location.href);" schreibe, bekomme ich genau die richtige URL, allerdings klappt das Anspringen des Ankers mit dem obengenannten Code nicht...
häh? ist das "#anker" mit bei? Ist irgendwo im Mainframe ein <a name="anker">? Klappt das anspringen innerhalb des Mainframes mit einem einfache Link dort?
Dank und Gruß,
frankx