问题描述
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().
这篇关于通用的 createPopup() 替代品?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!