I\'m toying with jQuery UI, and I like how this demo works: http://jqueryui.com/demos/dialog/#modal-message
However, when a dialog comes up, the only way to close it is
I've found the previous to be finicky at times, here's a simple fix:
$(".ui-widget-overlay").live('click', function(){ $(".ui-dialog-titlebar-close").trigger('click'); });