当前位置: 代码迷 >> vbScript >> js中框架值交互有关问题
  详细解决方案

js中框架值交互有关问题

热度:799   发布时间:2013-02-26 00:00:00.0
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 code
<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>
  相关解决方案