This function is so unfortunately named. "createPopup" does NOT create a pop-up window. It automates the process of creating and managing a DHTML floating div, ideal for things like your own auto-completions/tooltips/etc.
Unfortunately, the P word catches peoples' eyes; once people see that, they get hung up on it.
This function *should* be called createConvenientFloatingDivThatHasDocumentLikeProp ertiesForExtraConvenience()
because it's not quite a <div> that it creates, its more like an <iframe>. I've tried talking to the Firefox team about this function, but the Popup misnomer is every bit as big a red flag to them as mentioning IE.
My suggestion is to use this code - it solves the problem quickly:
-
if ( window.createPopup() ) // Creates anything but a popup
-
{
-
...
-
}
-
else
-
{
-
alert("Your browser likes to do things the hard way and I like perl - another win for IE. This page will not work for you");
-
}
-
'course, I have the luxury of a captive audience I can yell at when they try to make my life harder ;)