邓超婚纱照图片大全:哪位大哥帮忙解释一下下面这句javascript代码

来源:百度文库 编辑:中科新闻网 时间:2024/04/29 00:41:52
哪位大哥帮忙给下面这句代码加个注释。我是新手。下面代码中的oEditor是什么?是一个自己定义的变量吗?为什么不用“var oEditor =”呢?

function Editor(content){
document.write('<iframe name="wrEditor" id="wrEditor" width="500" height="250" src="about:blank"></iframe>');
oEditor = document.wrEditor;
var strHtml = '<html><style>body{font-size:14px;line-height: 20px; margin:2px;}\ntd, a{color:#0000FF; font-size:14px;}</style><body>'+content+'</body></html>';
oEditor.document.open();
oEditor.document.write(strHtml);
oEditor.document.close();

oEditor.document.designMode="On";
oEditor.focus();
}
src="about:blank" 又是什么意思呢?是让编程者自己填进去,还是说打开了一个空的窗口

另外还看见另外一段代码中有“oTextbox”,那这个"oTextbox"又是什么?他们属于javascript吗?怎么我的javascript书中没提到它们