Fog Creek Software
Discussion Board

Anything like window.createPopup for Mozilla?

IE5.5+ has this method to create popup windows that, when they lose focus hide themselves.  This is useful for making things like menus and drop-down controls (date picker, custom combo box, etc.)

The first benefit of this method is that you don't have to right all the code to detect when the mouse has clicked outside of the popup.

The second benefit of this method is that the popup exists as a seperate window so it can appear outside of the chrome of the parent window (very nice for menus).  This means it also appears above SELECT boxes and other embeddable controls that have their own hWnd, unlike DIV layers.

Is there anything like this for Mozilla or other "standards compliant" browsers?

Tuesday, April 27, 2004

I don't mean to troll, but popups are going the way of the <blink> tag.  I imagine a great many users now have the Google bar or something installed that is killing popups.  Maybe there's some other way you can make this work.

Tuesday, April 27, 2004

createPopup != see examples in post above.

Tuesday, April 27, 2004

While I agree that popup and popunder ads are going the way of the dodo, it should be noted that the Google Toolbar doesn't stop popup windows. It stops UNREQUESTED popup windows.

Brad Wilson (
Tuesday, April 27, 2004



Tuesday, April 27, 2004

"Is there anything like this for Mozilla or other "standards compliant" browsers?"

Interesting question. Is this a standard for popup windows that I missed? Is IE5.5 a standard browser?

Tom H
Tuesday, April 27, 2004

One way of finding out is to look at a site that uses your feature in IE and then in Mozilla. If it works in Mozilla then open the source of that site and track down the included javascript.

Tuesday, April 27, 2004

Hmm, I don't think that I explained myself that badly.  I think mb got my drift.

No, I'm not talking about popups for marketing purposes, but for software development. Like mb said, read the examples that I gave.

I just figured that with all the Mozilla users around here, there might be some people who make applications with Mozilla.

Arrg, I just wasted an hour looking this up myself with no luck.  XUL I guess?

Tuesday, April 27, 2004

I think OverLib will do everything you are looking for in a cross browser way:

Look at the clickable sticky ones - should be customisable to be just what you want.

Colm Larkin
Wednesday, April 28, 2004

Except IE popup objects have one great advantage: they are NOT limited to ONE frame, and can even be out of the window itself.

Unfortunately, I don't know any Mozilla equivalent,
and I think there should be one
since it's a very useful innovation from Microsoft.

Thursday, June 3, 2004

*  Recent Topics

*  Fog Creek Home