View Full Version : Resize new IE Browser window.........

08-09-2006, 04:09 PM
function NewBrowser2(url, name, h, w, l) {

string = 'top=0, left=' + l
newwindow = window.open(url, name, string);

if (window.focus){
newwindow.resizeTo(h, w);


There is my code. It works upto a point, it opens a new window, focuses on that window, but the "newwindow.resizeTo(h, w);" doesn't work.

Any Ideas?

08-09-2006, 04:26 PM
Why not just use the window.open function to do it all?

function NewBrowser2(url, thename, h, w, l) {
newwindow = window.open(url, thename, 'width='+w+',height='+h+',top=0,left='+l+');
if(newwindow) newwindow.focus();
I changed your name variable to something else because name might cause some problems if you form elements on the same page.

08-09-2006, 04:43 PM
Well what I am trying to do is a bit of a hack.

I want to get rid of the titlebar, with the close(x) button. But the only way I can think of doing it is by doing the: newwindow = window.open with a fullscreen=yes property, which will remove the titlebar and (x) and then resize that window so it will allow another browser window to be seen.

I promise there is a good reason for it :-)

08-09-2006, 07:41 PM
You can't resize a window that has gone fullscreen. The fullscreen overrides any sizing of it.