Link to home
Create AccountLog in
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
ASKER CERTIFIED SOLUTION
Avatar of archrajan
archrajan

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of jmeiss
jmeiss

ASKER

So I would do the following:

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

correct?
yeah where width is 800 and height is 600