Forum Moderators: open

Message Too Old, No Replies

Open Window resize

Just found it doesn't work with FF

         

Ohioian

2:42 am on May 15, 2005 (gmt 0)

10+ Year Member



Just goes to show how observant I am!

The resize, resizable argument doesn’t work in FF, I have tried setting both to "no" but you can still resize the window. Does anyone know of another way?

orion_rus

3:33 pm on May 16, 2005 (gmt 0)

10+ Year Member



May be you should first type your own here?
Good luck to you

ajkimoto

3:55 pm on May 16, 2005 (gmt 0)

10+ Year Member



Ohioian,

Here are a couple of items from Mozilla's Gecko DOM Reference:

How do I turn off window resizability or remove toolbars?
You can not by force. Mozilla users can have absolute control over window functionalities (resizability and scrollability) and toolbars presence by editing user preferences in about:config or via advanced prefs. We recommend to always set the resizability and scrollbars presence (if needed) to yes to insure accessibility to content and usability of windows.

resizable
If this feature is set to yes, then it will make the new secondary window resizable.

Note: Mozilla-based browsers since version 1.4 will have a window resizing grippy at the right end of the status bar; this is to assure users that they can resize a browser window even when the web author explicitly or implicitly requested to make such secondary window non-resizable. In such case, the maximize/restore down system command icon in the titlebar will be disabled and window resizing borders will be unresponsive but the window will still be resizable via that window resizing grippy in the status bar.

ajkimoto

rocknbil

4:13 pm on May 16, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This one got me curious so I just tested it. Resizability (or not) of new windows works exactly as expected in FF.

Furthermore you don't have to even add "yes," "no," "1," or "0" to the attributes to make a window resizable. All you need to do is include it:

<html>
<head><title>Untitled</title></head>
<body>
<a href="javascript:resize();">test resizable</a><br>
<a href="javascript:noresize();">test no resize</a>
<script language="javascript">
function noresize() {
var win=open('','test1','width=500,height=500');
win.document.write('Non resizable');
win.document.close();
}
function resize() {
var win=open('','test2','width=500,height=500,resizable');
win.document.write('Resizable');
win.document.close();
}
</script>
</body>
</html>

A possible clue, for the longest time I kept spelling resizeable with an E. :-)

Ohioian

7:14 pm on May 16, 2005 (gmt 0)

10+ Year Member



Okay, I'll show you mine:

head...

function openWin(URL) {
aWindow = window.open(URL,"thewindow",
"width = 435, height = 420, scrollbars = yes, status = no, resizable = no");
}

body...

<a href="javascript:openWin('contact.html')">Contact us</a>

I've always tested my pages using NS and IE and this always worked. Since downloading FF I find the world isn't the same.

Ohioian

7:26 pm on May 16, 2005 (gmt 0)

10+ Year Member



rocknbil

You said your test worked in FF? I tried it and could still resize the noresize.

Isn't Netscape Mozilla? The window will not resize with it.

rocknbil

3:05 pm on May 17, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



How are you resizing then? With the maximize bar-thingy? :-)

I couldn't get it to resize at all, either way. I just fired up an old copy of NN 7.1 to double-check it, and the maximize button upper right is grayed out on the noresize version. Don't know what's going on there.

Ohioian

11:17 am on May 18, 2005 (gmt 0)

10+ Year Member



No, just dragging the bottom left or right corners, I believe you don't see the grip's but you can still click and drag the window size larger/smaller with FF, not NS.