不能改成asp文件
,然后用asp做吗?

解决方案 »

  1.   

    opener.top.bFrameName可以访问B页面
      

  2.   

    可以看看这里,也许对你有帮助:
    http://blog.csdn.net/yellowhwb/archive/2004/08/12/72759.aspx
      

  3.   

    Re:ice_berg16(寻梦的稻草人) 
    opener 是打开新窗口的原窗口。
    top 是什么呢?
      

  4.   

    opener.top.bFrameName.document.*(打开的窗口调用b)
    a中打开窗口var newwin = window.open(……)
    b中调用打开窗口window.top.aFrameName.newwin.document.*
      

  5.   

    Re:ice_berg16(寻梦的稻草人) 
    opener 是打开新窗口的原窗口。
    top 是什么呢?
    ----------------------
    top指的是框架的顶级窗口
      

  6.   

    使用top可以,也可以使用opener.parent.b框架名字.
      

  7.   

    我给你写了一个例子,我测试过了,没有问题,要是还有问题,那么就给我发短消息!框架页面
    <html>
    <head>
    <title>ab</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    </head>
      <frameset rows="*" cols="167,*" framespacing="1" frameborder="yes" border="1">
        <frame src="a.htm" name="aFrame" scrolling="NO" noresize>
        <frame src="b.htm" name="bFrame" scrolling="NO" noresize>
      </frameset>
    </body>
    </html>a页面<HTML>
    <HEAD>
    <TITLE>a</TITLE>
    </HEAD>
    <BODY>
    <a href="#" onclick="window.open('c.htm')">A页面打开c窗口<a/>
    </BODY>
    </HTML>b页面<HTML>
    <HEAD>
    <TITLE> New Document </TITLE>
    </HEAD>
    <BODY>
    <input type="button" value="没有值" name="hTest" onclick="alert(this.value)">
    B页面
    </BODY>
    </HTML>c 页面
    <HTML>
    <HEAD>
    <TITLE> New Document </TITLE>
    </HEAD>
    <BODY>
    <a href="#" >C<a/>
    <a href="#" onclick="opener.parent.bFrame.hTest.value='fffff'">点击一下就会往b页面传值</a>
    </BODY>
    </HTML>
      

  8.   

    哈哈哈,行了!谢诸位了,尤其要谢谢llhdf(塞外浪子) 你的Example给了我很大启发。加分!
      

  9.   

    引用函数也一样,例如引用b.htm页面的函数,
    可以在c.htm页面使用 opener.parent.bFrame.b页面函数名()