tags:

views:

133

answers:

2

Hi,

How to get and set window popup height and width in Internet Explorer using JavaScript

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

Thanks.

A: 
window.open('something.html','new_win','width=320,height=240');

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

Andrew
+2  A: 

If it's an existing window, you can set the size using window.resizeTo (MSDN link):

window.resizeTo(640, 480)

Or, you can specify the size when the window's being created using the window.open method (MSDN link):

window.open ("http://stackoverflow.com",
"mywindow","location=1,status=1,scrollbars=1,
width=640,height=480");
Donut