困扰了我好几天的一个问题,很多朋友说的方法我都试验过了还是不行啊! 不能改成asp文件,然后用asp做吗? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 opener.top.bFrameName可以访问B页面 可以看看这里,也许对你有帮助:http://blog.csdn.net/yellowhwb/archive/2004/08/12/72759.aspx Re:ice_berg16(寻梦的稻草人) opener 是打开新窗口的原窗口。top 是什么呢? opener.top.bFrameName.document.*(打开的窗口调用b)a中打开窗口var newwin = window.open(……)b中调用打开窗口window.top.aFrameName.newwin.document.* Re:ice_berg16(寻梦的稻草人) opener 是打开新窗口的原窗口。top 是什么呢?----------------------top指的是框架的顶级窗口 使用top可以,也可以使用opener.parent.b框架名字. 我给你写了一个例子,我测试过了,没有问题,要是还有问题,那么就给我发短消息!框架页面<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> 哈哈哈,行了!谢诸位了,尤其要谢谢llhdf(塞外浪子) 你的Example给了我很大启发。加分! 引用函数也一样,例如引用b.htm页面的函数,可以在c.htm页面使用 opener.parent.bFrame.b页面函数名() 如何实现点击超链接后变色! javascript执行顺序问题 webkit模式下单击事件无效 初学jquery,写法问题 关于一份笔试题里的运算式 n~=5,。。谢谢了。。 刚学javaScript,请教一个整蛊人的问题 n个数组如何合并 请问一个按钮提交表单的问题 动态调用javascript函数如何实现呀??????? 请教:关闭窗口时怎么调用一个函数? 高分求解!怎么使隐藏掉的控件不再受JS验证程序的约束?? JS读取服务器上文件内容~高分
http://blog.csdn.net/yellowhwb/archive/2004/08/12/72759.aspx
opener 是打开新窗口的原窗口。
top 是什么呢?
a中打开窗口var newwin = window.open(……)
b中调用打开窗口window.top.aFrameName.newwin.document.*
opener 是打开新窗口的原窗口。
top 是什么呢?
----------------------
top指的是框架的顶级窗口
<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>
可以在c.htm页面使用 opener.parent.bFrame.b页面函数名()