Maximizing a pop up window - java pop ups

They have: 4 posts

Joined: Aug 1999

Can anyone please tell me how to have a pop up window "maximized" to the viewers screen when it first opens? Thanks for any help.

----------
Trish
[email protected]

John Pollock's picture

He has: 628 posts

Joined: Mar 1999

I'm not sure if you can maximize it for everybody, but if you can get the screen resolution somehow you can tell the window to open at a specific width/height using the width=number and height=number attributes.

Hopefully someone will have a better solution and post it for you though. Smiling

They have: 35 posts

Joined: Mar 1999

Try this out - it maximizes the window according the the screen res.
<SCRIPT LANGUAGE="JavaScript">
resup=window.screen.heightresside=window.screen.width
window.moveTo(0,0)
window.resizeTo(resside, (resup-27))
(27: Taskbar height)
</SCRIPT>

*Found at javascripts.com

They have: 35 posts

Joined: Mar 1999

Sorry,
*resside=window.screen.width* should be on a new line

They have: 4 posts

Joined: Aug 1999

Thanks for your input. However, this did not work. Meanwhile, I got sidetracked and am just revisiting the issue only to find more of a problem. Even though I have the pop-up set to be able to resize the window, Netscape won't. Is there something I can do to change this? The pop up has abnormally long flat panoramic 950 oixel photos, so scrolling for those with higher resolution really takes away from the photos. Any suggestions? Thanks.

----------
Trish
[email protected]

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.