问题
Whar are equivalent cross-browser solutions for window.showModalDialog? showModalDialog introduced in IE and FF 3.
回答1:
Natively I think there are none. But there are lots of UI toolkits that provides such functionality, such as jQuery-UI, the dojo toolkit and also the Yahoo-UI.
回答2:
As of the asp.net tag: the ajax control toolkit has an ModalPopupExtender. Maybe this one is yours.
http://www.asp.net/ajax/
回答3:
jQuery UI provides dialogs and in this you can have a modal dialog also. Check out this
http://jqueryui.com/demos/dialog/#modal
You can set the modal
option to be true
to get the modal dialog. See options section in this page.
$('.selector').dialog({ modal: true });
来源:https://stackoverflow.com/questions/2228543/whar-are-equivalent-cross-browser-solutions-for-window-showmodaldialog