PDA

View Full Version : window 100% size


jollywoz
10-01-2002, 10:56 AM
hi all,
i need to open a new window at 100% available screen size but with all the bars and menus etc. calling 'fullscreen' i'snt what i'm after as IE removes everything.

thx

glenngv
10-01-2002, 11:51 AM
function autoMax(){
top.window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers||document.getElementById) {
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
}


call it on onload

jollywoz
10-01-2002, 12:56 PM
excellent.. thx:thumbsup: