Avatar of jmeiss
jmeiss
 asked on

using <body onload> to set size of window as it opens

I have a webpage that I want to automatically resize as soon as someone navigates to it - and I think the <body onload> handler would work best (?)...

Any help would be appreciated

Thanks in advance

-Jeremy
JavaScript

Avatar of undefined
Last Comment
archrajan

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
archrajan

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
justinbillig

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
jmeiss

ASKER
So I would do the following:

<body onload="window.resizeTo(800,600);">

correct?
archrajan

yeah where width is 800 and height is 600
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy