<frame name="leftFrame" src="left.html">

Switch TOP and RIGHT frames.

function switchFrame() {

parent.topFrame.location = parent.rightFrame.location
parent.rightFrame.location = parent.topFrame.location

}


The switchFrame() function simply swaps the source of frames "topFrame" and "rightFrame" by setting their locations equal to the other's location.