views:

38

answers:

2

Currently createPopup() is only supported in IE (See http://help.dottoro.com/ljsxcrhv.php).

Is there a univsersal createPopup() replacement? Or is conditional code required based on browser detection?

Hopefully, I am looking for something that 1. not only provides the same functionality, but 2. has the same interface or at least could provide the ingredients to create 'createPopup()' clone without too much work.

A: 

You may want to look at some of the JavaScript libraries out there. Things like Dojo, Yahoo UI, or JQuery can help to encapsulate most of the browser-specific headaches. For example, with Dojo, take a look at http://api.dojotoolkit.org/jsdoc/1.2/dijit.Dialog. This would get you similar functionality to createPopup().

Dante617
A: 

Whats up with window.open()?

http://www.w3schools.com/jsref/met_win_open.asp

Lemmi
window.open() is way more obtrusive than createPopup().
Humberto
Obstrusive? What do you mean with that?
Lemmi
The popup object doesn't have a window frame, doesn't steal the focus away from the current page, and closes by itself once the user stops interacting with it.
Humberto
Yes, you're right. To argue this way means to better use the features of a JavaScript framework Dante617 describes.
Lemmi