parent.document.frames("if2").location.reload()

解决方案 »

  1.   

    to:net_lover(孟子E章)
    不好意思我刚才少写了一点。
    你先试一下,如果直接运行cont.htm,parent.document.frames("if2").location是可以的,但是,如果运行main.htm,就不行了,要报错的
      

  2.   

    top.mytest.if2.location
    parent.if2.location
      

  3.   

    to:jnkc(江南昆虫)
    请你先试一下,这样我都试过了,不行的.
      

  4.   

    parent.document.all.if2.location.reload()
      

  5.   

    test.htm
    ===========
    <frameset border="0" border="false" name="two" frameSpacing="0" frameBorder="0" cols="120,*"><frame name="left_frame" src="goleft.htm" noResize scrolling="no"><frame name="mytest" src="cont.htm" frameBorder="0" scrolling="no"></frameset>cont.htm
    ============
    <iframe id="if1" name="if1" src="f1.htm"></iframe><iframe id="if2" name="if2" src=""></iframe>f1.htm
    ==========
    <input onclick="parent.document.frames('if2').location='http://lucky.myrice.com'">是可以的
      

  6.   

    to:net_lover(孟子E章)
    谢谢你,如果先指定"><frame name="mytest" src="cont.htm" frameBorder="0" scrolling="no">是可以的,但是如果一开始src是指向其他的页面(在同一个目录下的default.htm)在goleft.htm中操作后,mytest的location才是cont.htm,这样的话,好象不行的。请帮我再看一下,谢谢1
      

  7.   

    to:all
    不好意思,是我自己搞错了,谢谢各位的帮助。