Simple enough, I want to access the body of an iframe from the parent window.
The thing that makes this hard is I create the iframe dynamicly, aparently some of the methods I have been using only work when the frame is made when the document is loaded first.. Also note I need this to be able to run in FF and IE7
The following does not work (have looked over the net for a few things):
Hopefully this is simple, thanks in advance, Josh
The thing that makes this hard is I create the iframe dynamicly, aparently some of the methods I have been using only work when the frame is made when the document is loaded first.. Also note I need this to be able to run in FF and IE7
Code:
var board = document.createElement('iframe');
board.id = 'board';
board.name = 'board';
Code:
board.document.body.backgroundColor = red; board.contentWindow.document.body.backgroundColor = red; window.frames['board'].document.body.backgroundColor = red;
Comment