PDA

View Full Version : maximizing and screen resizing


juglesh
09-13-2001, 04:03 AM
ok, first, is ther simply a 'maximizes' command or scrp?

this works in IE:

window.moveTo(0,0);
window.resizeTo(screen.availWidth, screen.availHeight);

Just like hitting yer maximize button, the window takes all available space, but not the quick launch/task bar.

But in stoopid NS:O@ the window takes up actually more pixels than you have monitor for - it takes the entire monitor and the bottm and one side of the window is actually out of sight.

so, if there was a maximize thingy, you wouldnt have to confuse NS with complex things like 'availWidth'

B>{)}

scoutt
09-13-2001, 01:41 PM
I have heard of this problem before and I don't recall if they found another script to solve the problem.

Jon Hanlon
09-13-2001, 07:29 PM
For Netscape, try

window.moveTo(0,0);
window.outerWidth = screen.availWidth;
window.outerHeight = screen.availHeight;