title: history.back() not working after ajax success function
body: <p>I want after <code>Ajax success function</code> I could return to the previous page.</p>
  
  <pre><code>&lt;div id="dialog" title="Complain"&gt;
         &lt;form id="komenform"&gt;
                  &lt;label&gt;Model :&lt;/label&gt;
                  &lt;input type="text" id="comodel" name="comodel"/&gt;
                  &lt;label&gt;Komentar :&lt;/label&gt;
                  &lt;textarea id="comment" name="comment" rows="5" cols="20" &gt;&lt;/textarea&gt;
                  &lt;button id="submitcom" type="button" class="ui-state-default ui-corner-all"&gt;&lt;span&gt;Submit &lt;/span&gt;&lt;/button&gt;
                  &lt;input name="action" value="inputcom" type="hidden"&gt;
         &lt;/form&gt;
  &lt;/div&gt;
  
  $("#komenform").validate({
          rules:{
                  comodel:{
                            required:true
                            },
                  comment:{
                          required:true
                          }
                  }
          });
  
  $("#submitcom").click(function() {
        if($("#komenform").valid()) {
              var params=$("#komenform").serialize();
              $.ajax({
                      type:"post",
                      url:"/QA/process2.php",
                      data:params,
                      cache :false,
                      async :false,
                      success : function() {
                             $("#comodel").val("");
                             $("#comment").val("");
                             $("#dialog").dialog('close');
                             history.back();
                             },
                      error : function() {
                             alert("Data failed to input.");
                             }
                      });
              }
        });
  </code></pre>
  
  <p>But it won't work.</p>
  
  <hr>
  
  <p><strong>UPDATE</strong></p>
  
  <p>it works after I try to remove <code>dialog('close')</code>:</p>
  
  <pre><code>success : function() {
         $("#comodel").val("");
         $("#comment").val("");
   //      $("#dialog").dialog('close');
         window.history.go(-1);
         return false;
         },
  </code></pre>
  
  <p>but, I need to double click on submit button. why?</p>