...

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



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

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



if (window.focus){
newwindow.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?

_Aerospace_Eng_
08-09-2006, 03: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.

daviiie
08-09-2006, 03: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 :-)

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum