var xx = document.all.frames.iframe1.document.all.xxxx;
就可以了

解决方案 »

  1.   

    没有all
    var xx = document.frames.iframe1.document.all.xxxx;
      

  2.   

    错误:
    document.all.frames.iframe1 不是对象或为空
      

  3.   

    <iframe name="iframe0" id="iframe1" src="b.htm">
    window.iframe0.document.all.xxxx;
      

  4.   

    错误:
    window.iframe0.document.all.xxxx 不是对象或为空
      

  5.   

    var xx = document.frames.iframe1.document.all.xxxx;
      

  6.   

    之所以出错是因为页面是以异步方式导入的,试试下面方法
    <script>
    function showiFra()
    {
    alert(iframe1.xxxx.innerHTML)
    }
    </script>
    <input type=button value=test onclick=showiFra()>
    <iframe id="iframe1" src="b.htm">
      

  7.   

    试一下parent.iframe1.document.xxxx.value
      

  8.   

    可能在你执行此代码时,页面尚未导入,试试这个window.onload = function(){
    alert(window.iframe0.document.all.xxxx);
    }
      

  9.   

    哈哈,搞定.原来xkou(九天神龙) 提示正确,我没有注意.
    没有all
    var xx = document.frames.iframe1.document.all.xxxx;