<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <mce:script type="text/javascript"><!-- function f(){ var doc; if (document.all){//IE doc = document.frames["MyIFrame"].document; }else{//Firefox doc = document.getElementById("MyIFrame").contentDocument; } doc.getElementById("s").style.color="blue"; } // --></mce:script> </head> <body onload="f()"> <iframe id = "MyIFrame" name = "MyIFrame" src = "iframePage.asp" width = "100" height="100"></iframe> </body> </html>