一个通用的createPopup()替换? [英] A universal createPopup() replacement?

查看:94
本文介绍了一个通用的createPopup()替换?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前只有IE支持 createPopup()(参见 http://help.dottoro.com/ljsxcrhv.php )。

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

是否存在通用 createPopup()更换?或者是基于浏览器检测所需的条件代码?

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

希望我能找到的东西不仅提供相同的功能,而且具有相同的界面或者至少可以提供创建的成分createPopup()克隆没有太多工作。

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.

推荐答案

你可能想看看一些那里的JavaScript库。像Dojo,Yahoo UI或JQuery这样的东西可以帮助封装大多数特定于浏览器的头痛。例如,使用Dojo,请查看 http://dojotoolkit.org/api/ 。这将使您获得与createPopup()类似的功能。

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()替换?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆