André Laugks: Frames und das history-Objekt

Beitrag lesen

Hallo!

<head>
<title>Test</title>

<script language="JavaScript">
<!--
function TwoFramesForwardBack(framenummer1,framenummer2,x)
     {  
      parent.frames[framenummer1].history.go(x);
      parent.frames[framenummer2].history.go(x);
     }
//-->
</script>
</head>

<body>

<a href="javascript:TwoFramesForwardBack(1,2,1)">Vor</a>;
<a href="javascript:TwoFramesForwardBack(1,2,-1)">Zurück</a>

</body>

Wie siehts aus, wenn Du für vor und zurück je eine Funktion definierst. Vielleicht heben sich so Deine Probleme auf!

vor()

parent.frames[framenummer1].history.forward();
parent.frames[framenummer2].history.forward();

zurueck()

parent.frames[framenummer1].history.back();
parent.frames[framenummer2].history.back();

<a href="javascript:vor(1,2)">Vor</a>;
<a href="javascript:zurueck(1,2)">Zurück</a>

mfg, André