alert(window.top.frames["b"].document.getElementById("ff").innerHTML);

解决方案 »

  1.   

    呵呵 应该是
    window.top.frames["b"].document.getElementById("ff").innerHTML
      

  2.   


    <script> 
    setTimeout(s,100)
    function s()
    {
    if(window.top.frames["b"].document.readyState=="complete")
    alert(window.top.frames["b"].document.getElementById("ff").innerHTML)
    else
    setTimeout(s,100)
    }
    //window.top.frames["b"].location ="http://www.sina.com"      //这是对的 
    </script> 2.html的代码这样才严谨些
    要不然当3.html加载中的时候 getElementById("ff")有可能会获取不到