[英]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.