title: jQuery Ajax PHP redirecting to another page
body: <p>JavaScript file:</p>
  
  <pre><code>$.ajax({
   type: "POST",
   url: "ajax.php",
   data: dataString,
   success: function(r) 
     {
       $("#div").html(r);
     }
  });
  </code></pre>
  
  <p>I want to redirect  the page to <code>new.php</code> on success condition so in the <code>ajax.php</code> file I used <code>header('Location:new.php');</code> but instead of redirecting to page <code>new.php</code> it is loading the content of <code>new.php</code> in the <code>div</code>.</p>
  
  <p>What changes do I need to make in order to redirect the existing page to a whole new page?</p>