views:

1769

answers:

4

how to disable firefox maximize button for popup window?

A: 

You can use the attribute

resizable

to be false to prevent the resizing of the new window.

window.open("http://www.domainname.ext/yourfile","windowname","resizable=no");

Read more here

window.open

rahul
see , this option applicable for only IE. not for firefox, safari, opera.
Lalit
A: 

You can flag a popup as non-resizeable like this:

window.open('http://example.com/', 'popUpWindow', 'width=400,height=150,resizable=no,scrollbars=yes');

ceejayoz
this will not work
Lalit
@Lalit Current versions of Firefox don't allow this for usability/accessibility reasons.
ceejayoz
A: 

when opening the window, use resizable=no or resizable=0

window.open("sample.aspx", "samplename", "resizable=no");
mschmidt42
+1  A: 

https://developer.mozilla.org/En/DOM/Window.open

try dialog=yes

DmitryK