1:Response.Write("<script>alert('登录名和密码不能为空!');location='javascript:history.go(-1)';</script>");返回上一页;
2:增加到收藏夹:javascript:window.external.addfavorite(“url”,“name”)
3:设置为主页:javascript:this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.xxx.com/')
转载于:https://www.cnblogs.com/zxlin25/archive/2009/03/24/1420237.html