//打开新的窗体
Response.Redirect("WebMain.aspx");
//弹出一个新窗体
Response.Write(" <script>window.open(/"WebMain.aspx/")</script> ")
//弹出一个只有确定按钮的提示框
Response.Write(" <script>alert(/"用户名或密码错误/");</script> ");
//关闭窗体不提示信息
Response.Write(" <script>window.opener=null;window.close();</script> ");
//关闭窗体提示一条信息
Response.Write(" <script>window.close();</script> ");
//关闭窗体提示两条信息
Response.Write(" <script>if(confirm(/"确定退出?/")==true){window.close();}</script> ");
IE地址栏前换成自己的图标
<link rel="Shortcut Icon" href="favicon.ico">
可以在收藏夹中显示出你的图标
<link rel="Bookmark" href="favicon.ico">
随机选择登陆页面
<script language="JavaScript">>
var url=new Array("index1.htm","index2.htm","index3.htm","index4.htm","index5.htm")
pnum=Math.floor(Math.random()*5)
location.href=url[pnum]
</script>