首页 新闻 赞助 找找看

iframe问题

0
悬赏园豆:5 [已关闭问题]

我用iframe来实现不同页面的显示,但当我操作成功后,我跳到首页,但首页中的iframe既然显示了首页,而先前的首页还在,首页的内容没有刷新,而在iframe中的首页内容得到了刷新首页

爱明的主页 爱明 | 初学一级 | 园豆:195
提问于:2010-05-12 17:31
< >
分享
其他回答(1)
0

被你跳迷了。

Astar | 园豆:40805 (高人七级) | 2010-05-12 20:34
0

加js判断:

string strScript=@"<script language=""javascript"">
if(window.opener)
{
if(window.opener.parent)
{
window.opener.parent.location.href='index.html';
window.close();
}
else
{
window.opener.location='/index.html';
//window.close();
}
}
else
{
window.location='/index.html';
//window.close();
}
</script>
";
Page.RegisterStartupScript(
"ref",strScript);

 

邀月 | 园豆:25475 (高人七级) | 2010-05-13 08:10
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册