这里有三层:
parent.parent.parent. 最高层
parent.parent.        第二层
parent.               底层

解决方案 »

  1.   

    我可以用parent.document.all.indexFrame 可以得到OBJECT,但是找不这个对象里面的IFRAME,何解~??
    恩,其他如TABLE、FORM也也找不到,问题就在于找到这个FRAME而访问不到里面的对象~~~??
      

  2.   

    parent.document.all.indexFrame.document.alll.iframeId
      

  3.   

    treeClimber(我以我血荐轩辕) 的方法早就试过,不可以~~
      

  4.   

    main.jsp:<frameset rows="52,*" framespacing="0" border="0"  framespacing="0">
      <frame src="xxx.jsp" scrolling="NO" noresize name="menu">
      <frame src="yyy.jsp" name="main">
    </frameset>xxx.jsp:<body>
    this is xxx.jsp! 
    <input type=button value=change onclick=parent.frames[1].location="zzz.jsp">
    </body>yyy.jsp:
    this is yyy.jsp! zzz.jsp:
    <frameset id=allFrame cols="200,*" framespacing="0" frameborder="0" border=1 bordercolor="#000000" framespacing=0>
        <frame src="aaa.jsp" border="0" name="leftFrame" frameborder="0" scrolling="no" id="allmid">
        <frame src="bbb.jsp" name="indexFrame" border="0" frameborder="0" id="indexFrame">
    </frameset>bbb.jsp:
    this is bbb.jsp!
    <input id =t1 type="text" value="hi!~``">
      
    aaa.jsp:
    this is aaa.jsp!
    <input type="button" value="click" onclick =parent.frames[1].t1.value='shyslysky'
    >
      

  5.   

    bbb.jsp:
    this is bbb.jsp!
    <input id =t1 type="text" value="hi!~``">
      
    aaa.jsp:
    this is aaa.jsp!
    <input type="button" value="click" onclick =parent.frames[1].t1.value='shyslysky'
    >
      

  6.   

    aaa.jsp:
    this is aaa.jsp!
    <input type="button" value="click" onclick =parent.frames[1].f1.window.document.all.t1.value='shyslysky'
    >
    bbb.jsp:
    this is bbb.jsp!
    <input id =t1 type="text" value="hi!~``"             
    >
    <iframe id=f1 src=qqq.jsp>qqq.jsp:<input id=t1 type="text" value="hello">
      

  7.   

    thanks shyslysky(飞天) 
    马上给分~