如何使一打开登录页面就没有地址栏?如何在退出登录时能直接转到login.aspx?
我在login.aspx页面中加入下面js后,退出登录转到login.aspx页面时,会同时打开两个login.aspx页面。如果去掉下面js代码,则地址栏又显示出来了。
我想不显示地址栏,并且在退出登录时,能转到login.aspx页面。(40分)应该怎么做? <script type="text/javascript" language="javascript"> if (window.opener == null) {
window.open(window.location, '', 'height=955, width=1280, top=0,left=0, toolbar=yes, menubar=yes, scrollbars=yes, resizable=yes,location=no, status=yes')
window.opener = null;
window.close();
}
</script>
我在login.aspx页面中加入下面js后,退出登录转到login.aspx页面时,会同时打开两个login.aspx页面。如果去掉下面js代码,则地址栏又显示出来了。
我想不显示地址栏,并且在退出登录时,能转到login.aspx页面。(40分)应该怎么做? <script type="text/javascript" language="javascript"> if (window.opener == null) {
window.open(window.location, '', 'height=955, width=1280, top=0,left=0, toolbar=yes, menubar=yes, scrollbars=yes, resizable=yes,location=no, status=yes')
window.opener = null;
window.close();
}
</script>
ClientScript.RegisterStartupScript(Page.GetType(), "",
"<script>
window.location.href ='login.aspx';
</script>");
top.opener = '';
top.open("","_self");
<script type="text/javascript" language="javascript"> if (window.opener == null) {
window.opener = null;
window.close();
window.open(window.location, '', 'height=955, width=1280, top=0,left=0, toolbar=yes, menubar=yes, scrollbars=yes, resizable=yes,location=no, status=yes'); }
</script> 谢谢各位了