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

How to change two or more frames at the same time

Frames

How to change two or more frames at the same time

by  unicorn11  Posted    (Edited  )
The simplest way to change two or more frames in one go at the same time is by using javascript

Code:
<script language="JavaScript">
function toped(holed) {

 var tested = holed
 parent.topFrame.location= tested

}
</script>
please substitute topframe with the framename of your choise

The following script can be used to change one frame and the second one is done by the traditional way using the link like below and the onClick is used to change the second frame

Code:
<font face="Verdana, Arial, Helvetica, sans-serif" size="2"><a href="exp_network.htm" onClick="toped('tn_projects.htm')">Projects</a>

Hope this is helpfull - ;-)
Regards
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top