Click to See Complete Forum and Search --> : javascript changing background color of another frame


neildadon
04-24-2003, 07:31 AM
can anyone help please

i have 4 frames on my page. in one of my frames i have designed a background modificator you select a color from the selection list and when the button to change color is clicked it changes to the selected color. What im now trying to do is add an extra option in where the user can select which frame to change the background too. this is where ive come to a problem does anyone have a solution ?

many thanks

pyro
04-24-2003, 07:43 AM
To reference frames, you use top.framename or top.frames[x] where x is the number of the frame in the array.

khalidali63
04-24-2003, 07:45 AM
parent.frames['frameName'].document.body.style.backgroundColor="green";
Once the page has completed loading,
The above will work on NS6+ and IE6+(tested).