Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

frames&js.. 1

Status
Not open for further replies.

meiteens

Programmer
Jan 18, 2001
14
LV
hi!

..i have such a frameset:

<frameset framespacing=&quot;0&quot; border=&quot;false&quot; rows=&quot;72,*,30&quot; frameborder=&quot;0&quot;>
<frame name=&quot;top&quot; scrolling=&quot;no&quot; noresize target=&quot;contents&quot; src=&quot;../top.htm&quot;>
<frameset cols=&quot;195,*&quot;>
<frame name=&quot;saturs&quot; target=&quot;teksts&quot; src=&quot;vizitkarte1.htm&quot; scrolling=&quot;no&quot;>
<frame name=&quot;teksts&quot; src=&quot;vizitkarte2.htm&quot; scrolling=&quot;auto&quot;>
<frameset>
<frame name=&quot;bottom&quot; scrolling=&quot;no&quot; noresize target=&quot;contents&quot; src=&quot;../footer.htm&quot;>
</frameset>

..and i want to change the frames &quot;teksts&quot; and &quot;saturs&quot; using javascript, so that's something like:

function teniss(kiwi,apple)
{
parent.teksts.location.href = kiwi;
parent.saturs.location.href = apple;
}

and

<a href=&quot;javascript:teniss('somepage.htm',someotherpage.htm')&quot;>

..all that works fine..

..the problem is that i also have to use

<a href=&quot;javascript:history.back()&quot;>
and it should change both frames (named &quot;teksts&quot; &amp; &quot;saturs&quot;) ..
..all i could think of was:

<a href=&quot;javascript:teniss(history.back(),history.back())&quot;>

..but that causes an error (that isn't a surprise though, as my knowledge about js is poor)

anyone can help? :)

thanks,
gunta
 
function bothBack()
{
parent.teksts.history.back()
parent.saturs.history.back()
} jared@aauser.com
 
thanks.. i tried that out, but it works only in ie, not in netscape.. :( ..maybe there are some other ways to do it?

gunta
 
what happens in NS and what version? jared@aauser.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top