js中框架值交互问题
function opennew()
{
parent.LeftupFrame.document.getElementById("source1").value=document.all.filename.value+".asf";
parent.LeftupFrame.document.getElementById("source").value=document.all.filename.value+".vga";
parent.RightFrame.document.all.reload();
}
这一段为何传不上值???
其中,filename.value是文件名
[解决办法]
问题还没解决吗?
不是解决掉了嘛。~~
呵呵,该结贴了哈
[解决办法]
一、index.htm
<html><head> <title>框架页传值示例</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><body><center><iframe src="left.htm" name="LeftupFrame" width="300" height="500" style="padding:5px;border:1px solid blue;" frameborder="0"></iframe><iframe src="right.htm" name="RightFrame" width="300" height="500" style="padding:5px;margin-left:20px;border:1px solid blue;" frameborder="0"></iframe></center></body> </html>