you are here: codestackercodes [RSS] → tag iframe [RSS]

set iframe background with javascript

var iframeDoc;
if (window.frames && window.frames.preview_frame && (iframeDoc = window.frames.preview_frame.document)) {
	iframeDoc.body.style.backgroundColor="#DADADA";
}
Displaying 1 Code