简体   繁体   English

如何使用jQuery选择模态对话框

[英]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.

相关问题 我如何在数据表中创建模式对话框 - how can i create an modal dialog in a datatable 我如何在模态表单对话框jquery中更改按钮的字体大小 - How can i change the font-size of my button in my modal form dialog jquery jQuery:如何设置模式对话框以相对于html居中显示而不是正文? - Jquery: How can I set a modal dialog to display centered relative to html instead of body? 如何更改使用 jQuery UI 制作的模态对话框的 css styles? - How can I change the css styles of a modal dialog box made with jQuery UI? 如何使用javascript或jquery中的滚动条打开“模态对话框”窗口 - How can I open a Modal-Dialog window with scrollbars in javascript or jquery 在jquery UI对话框上使用select2(v 4.0)时,如何在使用远程数据源时使allowClear选项起作用? - When using select2 (v 4.0) on a jquery UI dialog, how can I get allowClear option to work when using a remote datasource? 如何制作jQuery对话框模态? - How to make jQuery dialog modal? 如何从jQuery中的模态对话框中获取结果 - How do I get a result from a modal dialog in jQuery 如何使用JQuery UI在模式对话框内显示javascript图形? - How to display a javascript graph inside a modal dialog using JQuery UI? 如何使用jQuery UI在模式对话框中重置选择菜单 - How to reset a selectmenu inside a modal dialog, using jQuery UI
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM