给iframe动态赋值src后获取iframe里面的html代码要点2次按钮为什么?用什么方法可以点一次按钮就解决呢?
<script type="text/javascript">
        function WebEditor1() {
            document.getElementById("iRequest").src = "72247804.mht";
            document.getElementById("TextBox2").value = document.frames("iRequest").document.body.innerHTML;
        }
</script>
<iframe id="iRequest" frameborder="0" scrolling="no" width="480" height="250"></iframe>
<input type="button" value="111111" onclick="WebEditor1()" />第一次点button iframe能加载页面带式textbox里面没内容,再点button textbox里面才现在html代码!