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");
Donut source share