时间:2021-07-01 10:21:17 帮助过:33人阅读
<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>