Click to See Complete Forum and Search --> : manipulating window properties


AndyHib
01-05-2004, 06:01 AM
Could someone tell me if it is possible to manipulate the properties of a window while it is already open with code within the window.

To explain a little better, I am resizing the window using:
window.resizeTo(500, 500);

I now want to make the window non-resizable - so the user can not maximise/minimise the window.
I know you can do this in the original window.open statement but this unfortunately is not an option. I cannot also open another window from this one that has the properties I require.

I have looked around and found nothing to suggest that it is possible. I have tried several things such as
window.resizable = false;
window.resizable = no;
window.resizable = null;

does anyone have any ideas?
Thanks in advance
AndyHib

Pittimann
01-05-2004, 06:15 AM
Hi!

If you use this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<body onresize="window.resizeTo(500,500)">
</body>
</html>
only minimizing will be possible, but when resizing or maximizing the window, it always goes back to 500 by 500 pixels...

I tested that in Opera6 (doesn't work), NS 4.7 (works) and IE6 (works). As a matter of fact, NS and IE display a different size...

Cheers - Pit

AndyHib
01-05-2004, 08:29 AM
That's a great work around.
Just what I was looking for - thanks a lot.
AndyHib

Pittimann
01-05-2004, 08:34 AM
Hi!

You're welcome!
That's a great work around.
Well, it is not more than that :(

Anyway, if it helped...

Cheers - Pit

AndyHib
01-06-2004, 05:44 AM
Sorry didn't mean it to sound like that.
help very much appreciated. :D

Pittimann
01-06-2004, 05:46 AM
Hi!

Don't worry - it was me who wanted to point out that it is not more than a work around! I would prefer if more than that was possible ;)

Cheers - Pit