[英]How can I select Modal Dialog using jQuery
How can I select window.showModalDialog()
in jquery? 如何在jquery中选择window.showModalDialog()
?
In other words, I can select any element such as: DIVs, INPUTs and more in jQuery, but how can I select the regular javascript ModalDialog from jQuery? 换句话说,我可以在jQuery中选择任何元素,如:DIV,INPUT等,但是如何从jQuery中选择常规的javascript ModalDialog ?
I believe showModalDialog() prevents javascript from running in the parent window, which would not allow you to select it. 我相信showModalDialog()会阻止javascript在父窗口中运行,这不允许您选择它。 Also, I don't know how great cross-browser support is for it. 另外,我不知道跨浏览器支持有多棒。 You may want to look into the modal dialog feature of jQueryUI which is far more dynamic. 您可能希望查看更具动态性的jQueryUI的模式对话框功能。 http://jqueryui.com/demos/dialog/#modal http://jqueryui.com/demos/dialog/#modal
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.