View Full Version : Need help with frameset and a JS function....

01-26-2012, 05:38 AM
Can someone help me with this?

I have a frameset built as follows:

<FRAMESET cols="20%, 80%">
<FRAME src="red.html">
<FRAMESET rows="100, 200">
<FRAME name="green" src="Green.html">
<FRAME name="blue" src="Blue.html">

Then I have a function built in the red.html page to set the frame[green] to the blue.html source location. attached to a button on the red.html form.

<script language="javascript" type="text/javascript" >

window.onload = function colorchange()

top.location.green="blue.html"; just does not seem to do anything..

Can someone help with this.