Uses jQuery UI dialog instead (if it can apply).
jQuery UI dialog demo[
^]
jQuery dialogs are displayed over your page content and would be the prefered way to display temporary dialog.
There are some cases when it does apply well while other cases it does not make sense. For exemple, should the user be able to navigate in the new windows/dialog.