James Bensley wrote:
Got a page with a frameset containing two frames (frame 0 and frame 1). I have since gotten round to implementing css. Now this won't change the bgcolor because of the css use of background-color.
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
It's because the document itself is not a style-able object (it has no visible/presentation properties). You need to access the body and style it directly, i.e.
...document.body.style.backgroundColor = "#xxxxxx";
However, I'm duty-bound to say... Frames??!
Hth, Simon