Response.Write("<script language='javascript'>window.opener=null;window.close();</script>");
Response.Write("<script language='javascript'>window.open('login.aspx');</script>");我想用上一句来关闭当前窗口后,再打开登录窗口,可是第一句只能关闭没有框架的窗口,我的主窗口是有三个框 架的to gshope(北京.Net) 编译我知道,我还重新生成了方案都不行的!
Response.Write("<script language='javascript'>window.open('login.aspx');</script>");我想用上一句来关闭当前窗口后,再打开登录窗口,可是第一句只能关闭没有框架的窗口,我的主窗口是有三个框 架的to gshope(北京.Net) 编译我知道,我还重新生成了方案都不行的!
注销的话
你写一个函数
JS的函数
<a href="#" onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://11111)">设为首页</a>(2)、
<!-- #include virtual="/quickstart/aspplus/samples/webforms/customize/header.inc" -->
1、我在txt文件中写入“<a href="#" onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://11111)">设为首页</a>”
2、然后把txt文件更名为header.inc
3、在我的aspx中有“设为首页”文本,它的HTML源如下:
<TD style="HEIGHT: 17px"><FONT style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体" face="宋体" color="#0033ff"><U><STRONG>设为首页</STRONG></U></FONT></TD>4、把header.inc包括进来的代码(下面这行代码)应该放在哪儿?
<!-- #include virtual="/quickstart/aspplus/samples/webforms/customize/header.inc" -->
<a href="" onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.Uranus.com.cn');return false;"> 设为首页</a></font>
最后乘下“注销登录”这项目了,这个问题的在于,当前窗口是三框架的,用Response.Write()只能在某一个框架中输出登录窗口,其它的页面还在,很难看。用Response.Write("<script language='javascript'>window.opener=null;window.close();</script>");只能关闭没有框架的窗口,多框架窗口它还是关闭不了?