Click to See Complete Forum and Search --> : Resizing a window to fit a document


anarchist
04-11-2003, 10:25 AM
I have a pop up window, that acts as a menu, the window diplays a small list of links that a user can click. my problem is that on some pages this list will have more or less links than on another (whats displayed is decided by the server), so what I need to do is resize my window so that it fits, I've found the resizeTo function so the resizing isnt a problem, its getting the correct height of the document so that everythings displayed.

can any one help?

also can anyone suggest a good javascript reference for ie?

gil davis
04-11-2003, 11:36 AM
a good javascript reference for ie?
http://msdn.microsoft.com/library/en-us/script56/html/js56jsoriJScript.asp

AdamGundry
04-11-2003, 01:55 PM
Could you use something like this on the resizing pages?

<body onload="window.resizeTo(200,400)">

You'd have to change the numbers for each page, of course. There's probably an easier way to do it, but this should work.

Adam