title: Make a jQuery modal-dialog behave like an alert()
body: <p>I've got a modal dialog popping up via jQuery, but I would like it to behave like a regular js alert in that a) if you are on another tab it will bring the browser's focus back to the page with the alert and b) an alert sound "ding!" will be played.</p>
  
  <p>Is this possible?</p>
  
  <p>Here is my dialog box:</p>
  
  <pre><code>var $newCandleDialog = $('&lt;div&gt;&lt;/div&gt;')
          .load('/prodash/dash_access.php?urlInit=candles/getCanStatus.php','it='+newData)
          .dialog({
              autoOpen: false,
              title: 'Active Mode: New Candles!',
              modal: true,
              buttons: {
                  "Load new candles": function() {
                      $("#canHint").load('/prodash/dash_access.php?urlInit=candles/getcandles.php','q=0&amp;show=05&amp;strength=00');
                      $( this ).dialog( "close" );    
                  },
                  Cancel: function() {
                      $( this ).dialog( "close" );
                  }
              }
          });
  </code></pre>