0

我使用以下语法在页面中将验证码页面称为弹出窗口

this.Page.ClientScript.RegisterStartupScript(this.Page.GetType(),"Test","window.open('CaptchaLogin.aspx',null,'height=200,width=500,status= no,resizable= no,scrollbars=no,toolbar=no,toolbar=no,location=centre,menubar=no');", true);
4

1 回答 1

0

这是一篇关于这个主题的简单文章,带有一个演示:

http://www.nigraphic.com/blog/java-script/how-open-new-window-popup-center-screen

顺便说一句,谷歌是你最好的朋友 :) 有数百种实现可供你使用:

http://www.google.com/search?q=javascript+center+popup

于 2010-01-07T21:18:05.723 回答