<script type="text/javascript"> 
function getIframeContent(){  //获取iframe中文档内容
        var doc; 

        
if (document.all){//IE 
                doc = document.frames["MyIFrame"].document; 
        }
else{//Firefox    
                doc = document.getElementById("MyIFrame").contentDocument; 
        } 

        
return doc.body.innerHTML;


</script>

相关文章: