开发者

opening a new page?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜