<script>
window.onload=function()
{
var leleHTML = document.getElementById("leleEditor");
leleHTML.contentWindow.document.designMode = "on";
leleHTML.contentWindow.document.contentEditable = true;
}
function CheckForm()
{
var leleContent = leleEditor.document.body.innerHTML;
if(leleContent=="")
{
alert("请输入内容,谢谢!");
}
else
{
alert(leleContent);
}
}
</script>
<iframe id="leleEditor" width="100%" height="167" src="about:blank"></iframe>
<p> </p>
<input type="button" value="获取编辑器内容" onclick="document.getElementById('leleEditor').contentWindow.document.getElementsByTagName('body')[0].innerHTML;" />
版主。。。还是不可以呀。。