首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > vbScript >

js中框架值交互有关问题

2012-02-26 
js中框架值交互问题function opennew(){parent.LeftupFrame.document.getElementById(source1).valuedo

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> 

热点排行