I have a page containing an editable IFRAME element and am trying to add
specific text to the IFRAME when a user clicks a button. The program adds
the text just fine, but the problem is the text keeps changing colors when
I add anything to the innerHTML of the IFRAME.
For example, there is a button that will add the word 'cat' and one
that will add the word 'dog' to the IFRAME (just as an example). If I add
one, it'll be fine, but if I try to add more, the text will actually
change colors. In looking at the code, the body tag's text attribute
actually is what changes, but it doesn't change to a certain color all the
time. It's very random, from what I can tell. One time, it changed from
<BODY text=#000000> to <BODY text=#00e000> and then to <BODY text=#00b000>.
If there's anyone out there who knows how to fix this problem, please
tell me.
Chris