Forums

This topic is locked

Windows Maximize in Browser

Posted 27 Feb 2003 22:41:10
1
has voted
27 Feb 2003 22:41:10 Tom McNaught posted:
Suppose you open a window in the browser and that window links through a hotspot to another window, how do you get that second window to open at its maximum size so it completely obscures the first window?

Replies

Replied 28 Feb 2003 04:50:20
28 Feb 2003 04:50:20 Herbie Meadows replied:
This script will maximize the window:
<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>
Replied 28 Feb 2003 04:50:27
28 Feb 2003 04:50:27 Herbie Meadows replied:
This script will maximize the window:
<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>

Reply to this topic