2009-11-06 84 views
1

在我的web應用程序中我有一個按鈕,當我點擊我想打開一個新頁面時,頁面應該寬度爲220,高度爲300像這樣請幫我謝謝。打開一個新頁面?

回答

4

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

雅謝謝約翰先生諾蘭它工作正常 – 2009-11-06 11:25:58

1

使用

window.open

創建一個新的輔助瀏覽器窗口 並加載引用的資源。

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");