title: I want to display a message in confirm dialog in javascript without using html or any other
body: <p>I want to display a message "Do you want to delete?" in confirm dialog. </p>
  
  <p>I had given that message in the data content, but it is not working. </p>
  
  <p>How can i do this only by using javascript ?</p>
  
  <p>Here is my code :</p>
  
  <pre><code>function confirmDelete ( a )
  {   
  $(function() {
  
      $( "#dialog-confirm" ).dialog({
        data : "Do you want to delete?",
        resizable: false,
        height:140,
        modal: true,
        buttons: {
          "YES": function() {
              $(this).load("./removeAgent.action?id="+a,  function() {
                  $("#agentResult").trigger("reloadGrid");
              });
              $(this).dialog("close");
          },
          "   NO    ": function() {
              $(this).dialog("close");
          }
        }
      });
  });
  </code></pre>
  
  <p>}</p>