Loading

JS如何获取iframe内html的body值

default页面:

<html>
<head>
    <script type="text/javascript">
        window.onload=function()
        {
            var img = document.frames["IFeditValue"].document.getElementById('editValue');
            alert(img.innerHTML);
        }
    </script>
</head>
<body>
    <iframe id="IFeditValue" src="blank.html"  scrolling="auto" height="800" width="1000"></iframe>
</body>
</html>

 

posted @ 2016-07-05 10:42  guwei4037  阅读(11459)  评论(0编辑  收藏  举报