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!

Updating 3 frames at a time

Status
Not open for further replies.

vcherubini

Programmer
May 29, 2000
527
US
I have a question about updating 3 different frames at a time. I know how to change two frames at a time with:

<a href=&quot;page.html&quot; onClick=&quot;parent.framename.location.href='place.html'&quot;>

That will load two frames. How would I load three frames?
I was thinking of creating an array with the pages that you would go to and then calling different members of the array to go to pages. If someone can help, I need it ASAP.

Thanks in advance.

-Vic

vic cherubini
malice365@hotmail.com
====

Knows: Perl, HTML, JavScript, C/C++, PHP, Flash, Director

Wants to Know: Java, Cold Fusion, Tcl/TK

====
 
try this:

<a href=&quot;#&quot; onClick=&quot;updateThree()&quot;>Update 3</a>

<script>
function updateThree()
{
parent.frames[0].location=&quot;url1.htm&quot;
parent.frames[1].location=&quot;url2.htm&quot;
parent.frames[2].location=&quot;url3.htm&quot;
}
</script> jared@aauser.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top