ifream问题

附件里有个在线编辑器,index里有这样一段代码
<iframe id="HtmlEditor" class="editor_frame" frameborder="0" marginheight="0" marginwidth="0" style="width:100%;height:200px;" hideFocus>
</iframe>
不知道js是怎么写的居然能获取到值,求高手解答一下
function GetContent() { switch(gEditorCurId) { case gHtmlId: return fGetContent(); case gSourceId: return GetTextareaValue(S(gSourceId)); case gTextId: return GetTextareaValue(S(gTextId)); } return null; }
function fGetContent() { var b = F(gHtmlId).document.body; return b ? b.innerHTML : null; //返回框架页的内容 }