How to get and set the height and width of a popup in Internet Explorer

How to get and set the height and width of a popup in Internet Explorer using JavaScript

In Firefox, I can set the height and width using the outerHeight property, outerWidth of the window.

Thanks.

+4
source share
2 answers

If this is an existing window, you can set its size using window.resizeTo ( MSDN link ):

 window.resizeTo(640, 480) 

Or you can specify the size when creating the window using the window.open method ( MSDN link ):

 window.open ("http://stackoverflow.com", "mywindow","location=1,status=1,scrollbars=1, width=640,height=480"); 
+5
source
 window.open('something.html','new_win','width=320,height=240'); 

See also: http://google.com/search?q=popup+window+height+width+ie

0
source

All Articles