hi!
..i have such a frameset:
<frameset framespacing="0" border="false" rows="72,*,30" frameborder="0">
<frame name="top" scrolling="no" noresize target="contents" src="../top.htm">
<frameset cols="195,*">
<frame name="saturs" target="teksts" src="vizitkarte1.htm" scrolling="no">
<frame name="teksts" src="vizitkarte2.htm" scrolling="auto">
<frameset>
<frame name="bottom" scrolling="no" noresize target="contents" src="../footer.htm">
</frameset>
..and i want to change the frames "teksts" and "saturs" using javascript, so that's something like:
function teniss(kiwi,apple)
{
parent.teksts.location.href = kiwi;
parent.saturs.location.href = apple;
}
and
<a href="javascript:teniss('somepage.htm',someotherpage.htm')">
..all that works fine..
..the problem is that i also have to use
<a href="javascript:history.back()">
and it should change both frames (named "teksts" & "saturs" ..
..all i could think of was:
<a href="javascript:teniss(history.back(),history.back())">
..but that causes an error (that isn't a surprise though, as my knowledge about js is poor)
anyone can help?
thanks,
gunta
..i have such a frameset:
<frameset framespacing="0" border="false" rows="72,*,30" frameborder="0">
<frame name="top" scrolling="no" noresize target="contents" src="../top.htm">
<frameset cols="195,*">
<frame name="saturs" target="teksts" src="vizitkarte1.htm" scrolling="no">
<frame name="teksts" src="vizitkarte2.htm" scrolling="auto">
<frameset>
<frame name="bottom" scrolling="no" noresize target="contents" src="../footer.htm">
</frameset>
..and i want to change the frames "teksts" and "saturs" using javascript, so that's something like:
function teniss(kiwi,apple)
{
parent.teksts.location.href = kiwi;
parent.saturs.location.href = apple;
}
and
<a href="javascript:teniss('somepage.htm',someotherpage.htm')">
..all that works fine..
..the problem is that i also have to use
<a href="javascript:history.back()">
and it should change both frames (named "teksts" & "saturs" ..
..all i could think of was:
<a href="javascript:teniss(history.back(),history.back())">
..but that causes an error (that isn't a surprise though, as my knowledge about js is poor)
anyone can help?
thanks,
gunta