关于框架的问题,怎么退出整个框架
<html>
<head>
<meta http-equiv= "Content-Type " content= "text/html; charset=gb2312 ">
<title> 横县特色产业数据管理平台 </title>
</head>
<frameset rows= "74,*,0,0 " cols= "* " frameborder= "NO " border= "0 " framespacing= "0 ">
<frame src= "top.aspx " name= "topFrame " scrolling= "NO " noresize >
<frameset cols= "200,* " frameborder= "NO " border= "0 " framespacing= "0 ">
<frame src= "left.aspx " name= "leftFrame " scrolling= "NO " noresize>
<frame src= "mainFrame.aspx " name= "mainFrame ">
</frameset>
<noframes> <body>
</body> </noframes>
</html>
我想在top.aspx中退出整个框架代码是怎么写啦!!现在我用提这个, <a href= "index.htm " target= "_top "> <img src= "images/index_03.gif " /> </a> 不行啦!!还有为什么进去框架后,按f5刷新的是左边的left.aspx呢!!
------解决方案--------------------不行是什么意思呢?还在框架窗口中打开了吗?你的代码没错,在顶级窗口中打开的话target就是_top,按f5刷新的当前激活的窗口或框架,随便在任意一个框架的页面中点下鼠标,再按f5刷新的就是这个框架中的页面
------解决方案--------------------Response.Write( " <script language=javascript> parent.location= '../../Login/login.aspx '; </script> ");
parent.location=你要退出的页面
------解决方案--------------------Response.Write( " <script> parent.window.location.href= 'default.aspx ' </script> ");