用Redirect从新窗口打开链接

 

Code

 

用的时候直接调用就可以了

调用方法
windowFeatures是设置窗体,可以为空
Redirect("http://www.baidu.com/", "_blank","");
Redirect("http://www.baidu.com/", "_blank", "'height=100, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no'");
其实也是利用了window.open() , 换而言之,也可以用
Response.Writer("<script language=javascript>window.open('test.html','newwindow','');</script>");

 

posted on 2008-10-21 15:06  王培  阅读(228)  评论(0编辑  收藏  举报

导航