日期:2014-05-19  浏览次数:20380 次

在框架页中点击按钮回到登录框的同时关闭框架页的问题
我的框架页是frmMain.aspx
登录页是frmLogin.aspx

按钮事件中代码:
Response.Write( " <script   language= 'JavaScript '> top.opener=null;top.close();window.open( 'frmSelect.aspx '); </script> ");

可是每次关闭框架页的时候总是出现: "你查看的网页正在试图关闭窗口。是否关闭此窗口 "   的提示,我不只的怎么弄了,请高手指点

------解决方案--------------------
按钮事件中代码:
Response.Redirect( "frmSelect.aspx ")

在frmSelect.aspx中
<BODY onload= "if (parent.frames[1]) top.window.location=self.location; ">