Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Resizing a window
Message
 
 
À
28/11/2000 23:20:55
Information générale
Forum:
Internet
Catégorie:
Javascript
Divers
Thread ID:
00446553
Message ID:
00447102
Vues:
9
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform