Recently I ran across a rather strange error with different browser. Popup windows could be maximized in Opera and Mozilla, but not in IE. The code I was using was as follows (click here to try):
window.open(”, ”, ‘width=200,height=200’);
After some digging, I ran across the following snippet in MSDN:
When the sFeatures parameter is specified, the features that are not defined in the parameter are disabled. Therefore, when using the sFeatures parameter, it is necessary to enable all the features that are to be included in the new window.
My mistake in IE was that I specified the height and the width WITHOUT telling the browser about the resizability. Here is the corrected code (click here to try):
window.open(”, ”, ‘width=200,height=200’,resizable=yes);
But that still doesn’t explain why it worked in Opera or Mozilla. So after some more digging, an article at QuirksMode.org informed me that:
The popup is always resizable in Mozilla, Safari and Opera.
DOM Level 0
Functionalities equivalent to the ones exposed in Netscape Navigator 3.0 and Microsoft Internet Explorer 3.0 are informally referred to as “Level 0”. There is no W3C specification for this Level.
Microsoft’s documentation states that as well:
There is no public standard that applies to this method.
According to QuirksMode.org Netscape 4 had the resizable flag but for some reason starting with Mozilla v1.4 and in both Opera and Safari this flag is no longer present. So in this case, Microsoft is right by preservering the functionality of the resizable flag exactly the same way it has been implemented in IE 4 and Netscape 4.