这样写:
<script language=javascript>
document.write(top.frames[0].location)
</script>

解决方案 »

  1.   

    <script language=javascript>
    document.write(window.frames[0].location)
    </script>
      

  2.   

    parent.frames[0].location
    parent.frames[0].location.href
    parent.frames[0].document.location"在定义框架的时候没有定义它的名字"是什么意思?没有就给一个嘛,以后就方便了。莫非不是你自己的页面?
      

  3.   


    注意:
    如果其他FRAME中的页面来源并非本地相对路径,那么读取上述属性是不可以的,系统会提示权限错误。
      

  4.   

    document.write(top.frames.body.window.location);