打开新页面?

时间:2009-11-06 11:14:18

标签: c# asp.net

在我的网页应用程序中我点击一个按钮我要打开一个新页面,页面应该宽220,高度300这样请帮帮我谢谢。

4 个答案:

答案 0 :(得分:4)

类似

 onclick="window.open('default.aspx','','height=300,width:220,scrollbars=yes,resizable=yes,top=0,left=0,status=yes');"

答案 1 :(得分:1)

这将帮助您使用javascript实现此目的。

http://javascript.internet.com/generators/popup-window.html

答案 2 :(得分:1)

使用

window.open

  

创建新的辅助浏览器窗口   并加载引用的资源。

答案 3 :(得分:0)

这样的事情对你有用

window.open(window.location.protocol + "//" + window.location.host + "/" + "standard asp.net relative URL including parameters", "_blank", "width=220, height=300, scrollbars=yes, resizable=yes, menubar=yes, location=no");