specifying the size of a window

MeanMeosh

Diamond Member
Apr 18, 2001
3,805
1
0
i searched long and hard on this topic on google and now turn to you in frustration...

we are designing a webpage in the student organization i am a part of and are trying to figure out how to lock the size of a popup window. a link says "click here to view map" and we want the window that pops up to be the exact size of the picture (550 by 499 pixels), i.e. non-resizable. we are dealing with stupid HR people and a resizable window would be too much trouble.

so, can you guys help me with the script for the popup window to open up at 550 by 499 pixels and be locked at that size (non-resizable)? if not, how about just the script for the popup window to open up at 550 by 499???

please help, i've been working for like ever on this webpage and its driving me crazy!!!!

:p

thanks in advance
 

crypticlogin

Diamond Member
Feb 6, 2001
4,047
0
0
If you're using Javascript and using the window.open() function, this *should* (IIRC) do the trick:

window.open("urlOfPage", "nameOfWindow", "height=499,width=550");

The dimensions are for the entire window, including the menus, borders, etc. so you might have to play around with the actual numbers.