Entry
How to open a window maximized?
Feb 13th, 2000 07:28
Martin Honnen,
There is no api for opening a window maximized (in NN2/3/4 and
IE3/4/5). All you can do is (with NN4 and IE4/5) open the window at
position 0,0 with dimensions equal to the screen dimensions:
var w = window.screen.availWidth;
var h = window.screen.availHeight;
var win = open
('http://www.faqts.com', 'faqts',
'screenX=0,screenY=0,left=0,top=0,width=' + w + ',height=' + h +
',resizable=1,status=1,menubar=1,toolbar=1,location=1,scrollbars=1');
Calling
var w = window.screen.availWidth;
var h = window.screen.availHeight;
var win = open
('http://www.faqts.com', 'faqts','resizable=1,status=1,menubar=1,toolbar
=1,location=1,scrollbars=1');
win.moveTo(0, 0);
win.resizeTo(window.screen.availWidth, window.screen.availHeight)
is equivalent to that.