当前位置: 代码迷 >> JavaScript >> 请教在嵌套FRAMESET的不同FRAME里面怎么在A中控制B
  详细解决方案

请教在嵌套FRAMESET的不同FRAME里面怎么在A中控制B

热度:131   发布时间:2012-03-24 14:00:46.0
请问在嵌套FRAMESET的不同FRAME里面如何在A中控制B?
有这么几个文件:
index.html
<frameset   cols= "210,* "   frameborder= "no "   border= "0px "   framespacing= "0px "   name= 'center '>
<frame   src= "left.php "   name= "left ">
<frame   src= "right_content.php "   name= "right_content ">
</frameset>
=======================================================
然后在right_content.php又包含了个框架
<frameset   rows= "110,* "   frameborder= "no "   border= "1px "   framespacing= "0px "   name= 'center '>
<frame   src= "top.php "   name= "top ">
<frame   src= "right.php "   name= "right ">
</frameset>
======================================================
我想实现在left.php中onlick实现right.php的内容为空(不是用链接实现)
不太会JS...各位帮帮忙吧
 


------解决方案--------------------
parent.right.src= " "
------解决方案--------------------
parent.frames[1].document.all.right.src= " "
  相关解决方案