弟们,帮忙一下,iframe内嵌一个页面A,在A中有两个iframe B1,B2,在B1点打开窗口C,在c中怎样刷新页面B1,
弟们,帮忙一下,iframe内嵌一个页面A,在A中有两个iframe B1,B2,在B1点打开窗口C,在c中怎样刷新页面B1,
浏览页
<iframe id= "mainframe " name= "mainframe " src= "A.aspx " width= "100% " height= "350 " frameborder= "0 ">
</iframe>
A.aspx
<iframe name= "Left " src= "B1.aspx " style= "width: 100%; height: 100%; " frameborder= "0 " scrolling= "no "> </iframe>
<iframe name= "Right " src= "B2.aspx " style= "width: 100%; height: 100%; " frameborder= "0 " scrolling= "no "> </iframe>
B1.aspx /B2.aspx
..
C.aspx
<script language= "javascript ">
function returnImage()
{
window.opener.frames[ 'Left '].reload();
//这种方法我试过不行
}
</script>
<INPUT type= "button " value= "Button " onclick= "returnImage( ' ') ">
------解决方案--------------------C.aspx
<script language= "javascript ">
function returnImage()
{
window.opener.location.href=window.opener.location.href;
}
</script>