M
meiteens
Guest
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')">
..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 and error (that isn't a surprise though, as my knowledge about js is poor)
koennte jemand mir helfen?
(naja.. und mein deutsch ist auch nicht so gut um ueber javascript in deutsch zu schreiben
danke,
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')">
..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 and error (that isn't a surprise though, as my knowledge about js is poor)
koennte jemand mir helfen?
danke,
gunta