You are here: irt.org | FAQ | JavaScript | Frame | Q340 [ previous next ]
This can be achieve in two ways: either by loading another frameset in place of the original:
<A HREF="anotherframeset.html" TARGET="_parent">replace two frames with two others</A>
or using JavaScript you can alter the content of as many frames as you like:
<SCRIPT LANGUAGE="JavaScript"><!--
function change(url1,url2) {
parent.frames[0].location.href = url1;
location.href = url2; // always change the location of the current window last
}
//--></SCRIPT>
<A HREF="javascript:change('http://www.irt.org/','http://www.netscape.com/')">change the contents of two frames</A>