Don’t ask why, I know its horrible but my boss wants a window that opens full screen. Ok, no problem. Next he wants said maximized window to adjust its absolute position depending on where your windows toolbar is (you see, he puts it vertical along the left of the screen and the browser window opens using the correct available space but positions it at (0,0) hense, overlapping with the toolbar). Below is the code I’m using.
Thanks for your help,
Mike
<script language=”JavaScript1.2″>
<!–
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;
}
}
//–>
</script>