开发者

opening a new page?

开发者 https://www.devze.com 2022-12-10 21:56 出处:网络
in my web applica开发者_JS百科tion I have a button when I click I want to open a new page, the page should width 220, height 300 like this please help me thank you.something like

in my web applica开发者_JS百科tion I have a button when I click I want to open a new page, the page should width 220, height 300 like this please help me thank you.


something like

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


This will help you achive this using javascript.

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


Use

window.open

Creates a new secondary browser window and loads the referenced resource.


Something like this should work for you

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

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号