通用的 createPopup() 替代品?
Currently createPopup()
is only supported in IE (See http://help.dottoro.com/ljsxcrhv.php).
Is there a universal createPopup()
replacement? Or is conditional code required based on browser detection?
Hopefully, I am looking for something that not only provides the same functionality, but has the same interface or at least could provide the ingredients to create createPopup()
clone without too much work.
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://dojotoolkit.org/api/. This would get you similar functionality to createPopup().
相关文章