[英]How to get and set window popup height and width in Internet Explorer
如何使用JavaScript在Internet Explorer中获取和设置窗口弹出高度和宽度
在Firefox中,我可以使用window的outerHeight,outerWidth属性设置高度和宽度。
谢谢。
如果它是现有窗口,您可以使用window.resizeTo
( MSDN链接 )设置大小:
window.resizeTo(640, 480)
或者,您可以使用window.open
方法( MSDN链接 )指定创建窗口时的大小:
window.open ("http://stackoverflow.com",
"mywindow","location=1,status=1,scrollbars=1,
width=640,height=480");
window.open('something.html','new_win','width=320,height=240');
另请参阅: http : //google.com/search?q=popup+window+height+width+ie
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.