Got a page with a frameset containing two frames (frame 0 and frame 1). The page in the top frames (frame 0) has links and each link calls the same JavaScript function parsing a different value. I want the bottom frame page (frame 1) to have its background colour set to the parsed value.
My problem is, within the JavaScript function; window.parent.frames[1].document.bgColor = "#xxxxxx"
Will change the bgcolor but I have since gotten round to implementing css. Now this won't change the bgcolor because of the css use of background-color.
However;
window.parent.frames[1].document.style.backgroundcolor = "#xxxxxx";
Doesn't change the background color. Internet Explorer shows me this error:
'window.parent.frames.1.document.style' is null or not an object
I'm stumped? Any advice would be greatly appreciated!