Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Resizing a window
Message
 
 
To
28/11/2000 23:20:55
General information
Forum:
Internet
Category:
Javascript
Miscellaneous
Thread ID:
00446553
Message ID:
00447102
Views:
14
>From a javascript command, what is the command to resize the window? I'm looking for the same behavior as when we click on the zoom button from the upper right.

Michel,
This works in IE 5 and Netscape 4.
< script language=javascript >
function resizebrowser() {
window.moveTo(0, 0);
window.resizeTo(screen.availWidth, screen.availHeight);
}
< /script >
< input type=button value=Resize onclick=resizebrowser()>
It doesn't maximize the window but it does resize it to its maximum dimensions.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform