框架页面,frame页面动态变化的问题

现在有一个框架页面A,包括3个框架,分别命名为top,left,main。其中left本身也是一个框架页面,包括left1和left2。现在想要实现的功能是,left1中有一个“返回”按纽,点击它,即可实现:left整个转换成另一个页面,同时A中的main也要转换成另一个页面,该怎么实现?
知道有一些写法:document.location.href="",还有
frames.top.frames["].document.location.href=""
---------------------------------------------------------------

1<a href="return.asp" target="top">返回</a>

---------------------------------------------------------------

left1中

1<input onclik="javascript:parent.parent.document.left.location='another.htm';parent.parent.docuemnt.main.location='xxx.htm'" type="button"/>

---------------------------------------------------------------

可以这样来实现

1<a href="#" onclick="pagereturn();">
2<script>   
3function pagereturn{   
4parent.main.location.href="a.asp";   
5parent.Left.location.href="b.asp";   
6parent.top.location.href="c.asp";   
7}   
8</script></a>
Published At
Categories with Web编程
Tagged with
comments powered by Disqus