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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change multiple frames simultaneously.

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi!

I would like to change frames simultaneously.
I found this piece of code (below), but I did not work
( more likely that I did something wrong), in Netscape 6.

If you answer my question, put it as simple as possible, because I know very little about javascript.


Kind regards
Hugh Guccione



<script language=&quot;JavaScript&quot;>
<!-- go to j-scripts.com
function framechange(url1,url2) {
window.framename1.location=url1
window.framename2.location=url2
}
//-->
</script>
<a href=&quot;javascript:framechange('url1.html,url2.html')&quot;>Go here.</a>
 
show us your page with the <frameset ....> in
i bet that you have this :
<frame name=&quot;whatever&quot; src=...>
whereas you should have this :
<frame name=&quot;framename1&quot; src=...>
because you wrote :
window.framename1.location=url1
in your framechange function

why don't you want to try & learn javascript ? it's fun & easy and it will save you lots of time !!! ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top