Response.Write("<script language=javascript>window.open('login.aspx');window.parent.close();</script>")
这样试一下。这种是适合框架页的,并且一定要是框架里面的页的吧。否则可能会因为parent不存在而出错。如果你不是要在框架中的,那就把parent.去掉。
这样试一下。这种是适合框架页的,并且一定要是框架里面的页的吧。否则可能会因为parent不存在而出错。如果你不是要在框架中的,那就把parent.去掉。
window.open("login.aspx", "_blank", "toolbar=no,location=no,directories=no,menubar=no,status=yes,resizable=yes,scrollbars=auto");
window.opener=null;
window.close();// 子窗口随便写,相互不传参,要传就拼到地址后面!
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- DW6 -->
<head>
<meta http-equiv="Content
onload = -Type" content="text/html; charset=utf-8" />
<title>shawl.qiu template</title>
<script type="text/javascript">
//<![CDATA[
function()
{
}
onunload =
function()
{
opener = null
self.close();
open('about:blank', 'sq', 'width=500, height=500');
}
//]]>
</script>
</head>
<body></body>
</html>